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

random_identifier.hpp
Go to the documentation of this file.
1 #ifndef EAGINE_RANDOM_IDENTIFIER_HPP
9 #define EAGINE_RANDOM_IDENTIFIER_HPP
10 
11 #include "any_random_engine.hpp"
12 #include "identifier.hpp"
13 #include <cstdint>
14 
15 namespace eagine {
16 //------------------------------------------------------------------------------
22 auto random_identifier(any_random_engine<std::uint32_t> engine) -> identifier;
23 
29 auto random_identifier(any_random_engine<std::uint64_t> engine) -> identifier;
30 
37 //------------------------------------------------------------------------------
38 } // namespace eagine
39 
40 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
41 #include <eagine/random_identifier.inl>
42 #endif
43 
44 #endif // EAGINE_RANDOM_IDENTIFIER_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
auto random_identifier(any_random_engine< std::uint32_t > engine) -> identifier
Creates an random identifier using the specified random engine.
basic_identifier< 10, 6, default_identifier_char_set, identifier_t > identifier
Default identifier type used throughout the project.
Definition: identifier.hpp:346

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