My Project
alignment_of.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_ALIGNMENT_OF_HPP
29 #define BSL_ALIGNMENT_OF_HPP
30 
31 #include "cstdint.hpp"
32 
33 namespace bsl
34 {
45  template<typename T>
46  struct alignment_of final
47  {
49  static constexpr bsl::uintmax value{alignof(T)};
50  };
51 }
52 
53 #endif
::uintmax_t uintmax
defines a unsigned integer with the maximum possible size
Definition: cstdint.hpp:97
static constexpr bsl::uintmax value
the alignment of T
Definition: alignment_of.hpp:49
Provides the member constant value equal to the alignment of T.
Definition: alignment_of.hpp:46