OGLplus  (0.59.0) a C++ wrapper for rendering APIs

selector.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_SELECTOR_HPP
10 #define EAGINE_SELECTOR_HPP
11 
12 #include "identifier_t.hpp"
13 
14 namespace eagine {
15 
20 template <identifier_t V>
21 struct selector {
22  static constexpr const identifier_t value = V;
23  using type = selector;
24 };
25 
30 
34 constexpr const default_selector_t default_selector = {};
35 
43 
47 constexpr const construct_from_t construct_from = {};
48 
49 } // namespace eagine
50 
51 #endif // EAGINE_SELECTOR_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
Template used to construct tag-types used mostly in tag-dispatching.
Definition: selector.hpp:21
std::uint64_t identifier_t
The underlying integer type for eagine::identifier.
Definition: identifier_t.hpp:19
constexpr const construct_from_t construct_from
The construct-from tag-dispatch constant.
Definition: selector.hpp:47
constexpr const default_selector_t default_selector
The default overload selector constant.
Definition: selector.hpp:34

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).