jack06215

[tutorial] 64 bits int

Jul 12th, 2020 (edited)
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. inline constexpr uint64_t operator "" _u64(unsigned long long int value)
  2. {
  3.     return static_cast<uint64_t>(value);
  4. }
  5.  
  6. uint64_t v = 2_u64 << 2;
  7. std::cout << v << std::endl;
Add Comment
Please, Sign In to add comment