VCCC  2024.05
VisualCamp Common C++ library
derived_from.hpp
Go to the documentation of this file.
1 //
2 // Created by cosge on 2023-12-02.
3 //
4 
5 #ifndef VCCC_CONCEPTS_DERIVED_FROM_HPP_
6 #define VCCC_CONCEPTS_DERIVED_FROM_HPP_
7 
8 #include <type_traits>
9 
11 
12 namespace vccc {
13 
37 template<typename Derived, typename Base>
39  : conjunction<
40  std::is_base_of<Base, Derived>,
41  std::is_convertible<const volatile Derived*, const volatile Base*>
42  > {};
43 
46 
47 } // namespace vccc
48 
49 #endif // VCCC_CONCEPTS_DERIVED_FROM_HPP_
Definition: directory.h:12
Definition: conjunction.hpp:22
Models std::derived_from
Definition: derived_from.hpp:42