2 * Copyright Andy Tompkins 2006.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
8 * \file uuid/detail/uuid_generic.hpp
10 * \brief This header contains generic implementation of \c boost::uuid operations.
13 #ifndef BOOST_UUID_DETAIL_UUID_GENERIC_HPP_INCLUDED_
14 #define BOOST_UUID_DETAIL_UUID_GENERIC_HPP_INCLUDED_
21 inline bool uuid::is_nil() const BOOST_NOEXCEPT
23 for (std::size_t i = 0; i < sizeof(data); ++i)
31 inline void uuid::swap(uuid& rhs) BOOST_NOEXCEPT
38 inline bool operator== (uuid const& lhs, uuid const& rhs) BOOST_NOEXCEPT
40 return memcmp(lhs.data, rhs.data, sizeof(lhs.data)) == 0;
43 inline bool operator< (uuid const& lhs, uuid const& rhs) BOOST_NOEXCEPT
45 return memcmp(lhs.data, rhs.data, sizeof(lhs.data)) < 0;
51 #endif // BOOST_UUID_DETAIL_UUID_GENERIC_HPP_INCLUDED_