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

compiler_info.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_COMPILER_INFO_HPP
10 #define EAGINE_COMPILER_INFO_HPP
11 
12 #include "string_span.hpp"
13 #include "valid_if/nonnegative.hpp"
14 #include "valid_if/not_empty.hpp"
15 #include <tuple>
16 
17 namespace eagine {
18 
19 auto compiler_name() noexcept -> valid_if_not_empty<string_view>;
20 auto compiler_version_major() noexcept -> valid_if_nonnegative<int>;
21 auto compiler_version_minor() noexcept -> valid_if_nonnegative<int>;
22 auto compiler_version_patch() noexcept -> valid_if_nonnegative<int>;
23 auto architecture_name() noexcept -> valid_if_not_empty<string_view>;
24 
25 } // namespace eagine
26 
27 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
28 #include <eagine/compiler_info.inl>
29 #endif
30 
31 #endif // EAGINE_COMPILER_INFO_HPP
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
Common code is placed in this namespace.
Definition: eagine.hpp:21
valid_if< T, valid_if_nonneg_policy< T > > valid_if_nonnegative
Specialization of valid_if, for values valid if non-negative.
Definition: nonnegative.hpp:44
valid_if< T, valid_if_not_empty_policy< T > > valid_if_not_empty
Specialization of valid_if, for values valid if not empty.
Definition: not_empty.hpp:42

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