My Project
enable_if.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_ENABLE_IF_HPP
29 #define BSL_ENABLE_IF_HPP
30 
31 namespace bsl
32 {
46  template<bool B, typename T = void>
47  struct enable_if final
48  {};
49 
51  template<bool B, typename T = void>
53 
55 
56  template<typename T>
57  struct enable_if<true, T> final
58  {
60  using type = T;
61  };
62 
64 }
65 
66 #endif
Defines a conditional "if" statement for SFINAE overload resolution. If B is true,...
Definition: enable_if.hpp:47
typename enable_if< B, T >::type enable_if_t
a helper that reduces the verbosity of bsl::enable_if
Definition: enable_if.hpp:52