class_traits_t.cc
Go to the documentation of this file.
1 #include "gallery/Event.h"
2 
3 #include <type_traits>
4 
5 template <typename T>
6 constexpr bool
8 {
9  return std::is_nothrow_destructible_v<T>;
10 }
11 
12 template <typename T>
13 constexpr bool
15 {
16  return not std::is_copy_constructible_v<T>;
17 }
18 
19 template <typename T>
20 constexpr bool
22 {
23  return std::is_nothrow_move_constructible_v<T> and
24  std::is_nothrow_move_assignable_v<T>;
25 }
26 
27 int
29 {
30  static_assert(not std::is_default_constructible_v<gallery::Event>);
31  static_assert(nothrow_destructible<gallery::Event>());
32  static_assert(noncopyable<gallery::Event>());
33  static_assert(nothrow_movable<gallery::Event>());
34 }
constexpr bool nothrow_movable()
constexpr bool nothrow_destructible()
int main()
constexpr bool noncopyable()