My Project
is_volatile.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_IS_VOLATILE_HPP
29 #define BSL_IS_VOLATILE_HPP
30 
31 #include "true_type.hpp"
32 #include "false_type.hpp"
33 
34 namespace bsl
35 {
52  template<typename T>
53  class is_volatile final : public false_type
54  {};
55 
57 
58  template<typename T>
59  class is_volatile<T volatile> final : public true_type
60  {
61  static_assert(sizeof(T) != sizeof(T), "volatile not supported"); // NOLINT
62  };
63 
65 }
66 
67 #endif
If the provided type is an array type (taking into account const qualifications), provides the member...
Definition: integral_constant.hpp:45
If the provided type is qualified as volatile, provides the member constant value equal to true....
Definition: is_volatile.hpp:53