annotate DEPENDENCIES/generic/include/boost/uuid/nil_generator.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Boost nil_generator.hpp header file ----------------------------------------------//
Chris@16 2
Chris@16 3 // Copyright 2010 Andy Tompkins.
Chris@16 4 // Distributed under the Boost Software License, Version 1.0. (See
Chris@16 5 // accompanying file LICENSE_1_0.txt or copy at
Chris@16 6 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7
Chris@16 8 #ifndef BOOST_UUID_NIL_GENERATOR_HPP
Chris@16 9 #define BOOST_UUID_NIL_GENERATOR_HPP
Chris@16 10
Chris@16 11 #include <boost/uuid/uuid.hpp>
Chris@16 12
Chris@16 13 namespace boost {
Chris@16 14 namespace uuids {
Chris@16 15
Chris@16 16 // generate a nil uuid
Chris@16 17 struct nil_generator {
Chris@16 18 typedef uuid result_type;
Chris@16 19
Chris@16 20 uuid operator()() const {
Chris@16 21 // initialize to all zeros
Chris@16 22 uuid u = {{0}};
Chris@16 23 return u;
Chris@16 24 }
Chris@16 25 };
Chris@16 26
Chris@16 27 inline uuid nil_uuid() {
Chris@16 28 return nil_generator()();
Chris@16 29 }
Chris@16 30
Chris@16 31 }} // namespace boost::uuids
Chris@16 32
Chris@16 33 #endif // BOOST_UUID_NIL_GENERATOR_HPP
Chris@16 34