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

anything.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_ANYTHING_HPP
10 #define EAGINE_ANYTHING_HPP
11 
12 namespace eagine {
13 
16 struct anything {
18  constexpr anything() noexcept = default;
19 
21  constexpr anything(anything&&) noexcept = default;
22 
24  constexpr anything(const anything&) noexcept = default;
25 
27  auto operator=(anything&&) noexcept -> anything& = default;
28 
30  auto operator=(const anything&) noexcept -> anything& = default;
31 
32  ~anything() noexcept = default;
33 
35  template <typename Unused>
36  constexpr anything(const Unused&) noexcept {}
37 };
38 
39 } // namespace eagine
40 
41 #endif // EAGINE_ANYTHING_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
constexpr anything() noexcept=default
Default constructor.
constexpr anything(const Unused &) noexcept
Construction from any other type.
Definition: anything.hpp:36
auto operator=(anything &&) noexcept -> anything &=default
Move assignment operator.
Type that can by constructed from single argument of any other type.
Definition: anything.hpp:16

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