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

nothing.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_NOTHING_HPP
10 #define EAGINE_NOTHING_HPP
11 
12 namespace eagine {
13 
17 struct nothing_t {
18 
20  using type = nothing_t;
21 
23  template <typename... T>
24  constexpr nothing_t(T...) noexcept {}
25 };
26 
30 static constexpr nothing_t nothing = {};
31 
32 } // namespace eagine
33 
34 #endif // EAGINE_NOTHING_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
Class representing "none" / "nothing" values.
Definition: nothing.hpp:17
constexpr nothing_t(T...) noexcept
Constructible from any number and types of arguments.
Definition: nothing.hpp:24
static constexpr nothing_t nothing
Constant of nothing_t type.
Definition: nothing.hpp:30

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