Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-06-30 08:32:19

0001 #ifndef BOOST_UUID_NIL_GENERATOR_HPP_INCLUDED
0002 #define BOOST_UUID_NIL_GENERATOR_HPP_INCLUDED
0003 
0004 // Copyright 2010 Andy Tompkins.
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // https://www.boost.org/LICENSE_1_0.txt
0007 
0008 #include <boost/uuid/uuid.hpp>
0009 
0010 namespace boost {
0011 namespace uuids {
0012 
0013 // generate a nil uuid
0014 struct nil_generator
0015 {
0016     using result_type = uuid;
0017     
0018     uuid operator()() const noexcept
0019     {
0020         return {{}};
0021     }
0022 };
0023 
0024 inline uuid nil_uuid() noexcept
0025 {
0026     return {{}};
0027 }
0028 
0029 }} // namespace boost::uuids
0030 
0031 #endif // BOOST_UUID_NIL_GENERATOR_HPP_INCLUDED