Boost.org uuid module
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Peter Dimov 2bc0c8e716 Update ci.yml 6 months ago
.github/workflows Update ci.yml 6 months ago
doc Add BOOST_UUID_RANDOM_PROVIDER_GETRANDOM_DISABLE_LIBC_WRAPPER macro 1 year ago
include/boost/uuid Improve generated x86 code for AVX targets (#138) 6 months ago
meta [skip ci] Add "cxxstd" json field. The "cxxstd" json field is being added to each Boost library's meta json information for libraries in order to specify the minumum C++ standard compilation level. The value of this field matches one of the values for 'cxxstd' in Boost.Build. The purpose of doing this is to provide information for the Boost website documentation for each library which will specify the minimum C++ standard compilation that an end-user must employ in order to use the particular library. This will aid end-users who want to know if they can successfully use a Boost library based on their C++ compiler's compilation level, without having to search the library's documentation to find this out. 2 years ago
test Improve generated x86 code for AVX targets (#138) 6 months ago
.appveyor.yml fix codecov ignore test dir, add pthread to appveyor cygwin 2 years ago
.codecov.yml drop test files from coverage report 2 years ago
.gitattributes Move top-level boost directory over to "devel" (temporarily) 16 years ago
CMakeLists.txt Regenerate CMakeLists.txt 7 months ago
Jamfile Fix for typo (LICENCE) and for https links to license (#103) 5 years ago
LICENSE Add license file 6 years ago
README.md (re)add appveyor for older msvc, cygwin 2 years ago
index.html Fix for typo (LICENCE) and for https links to license (#103) 5 years ago

README.md

Uuid, part of collection of the Boost C++ Libraries, provides a C++ wrapper around RFC-4122 UUIDs.

License

Distributed under the Boost Software License, Version 1.0.

Properties

  • C++03
  • Header-only

Build Status

Branch GHA CI Appveyor CI Coverity Scan codecov.io Deps Docs Tests
master Build Status Build status Coverity Scan Build Status codecov Deps Documentation Enter the Matrix
develop Build Status Build status Coverity Scan Build Status codecov Deps Documentation Enter the Matrix

Directories

Name Purpose
doc documentation
include headers
test unit tests

More information

  • Ask questions
  • Report bugs: Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
  • Submit your patches as pull requests against develop branch. Note that by submitting patches you agree to license your modifications under the Boost Software License, Version 1.0.
  • Discussions about the library are held on the Boost developers mailing list. Be sure to read the discussion policy before posting and add the [uuid] tag at the beginning of the subject line.

Code Example - UUID Generation

// Copyright 2017 James E. King III
// Distributed under the Boost Software License, Version 1.0.
// (See https://www.boost.org/LICENSE_1_0.txt)
//  mkuuid.cpp example

#include <boost/lexical_cast.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <iostream>

int main(void)
{
    boost::uuids::random_generator gen;
    std::cout << boost::lexical_cast<std::string>(gen()) << std::endl;
    return 0;
}

----

$ clang++ -ansi -Wall -Wextra -std=c++03 -O3 mkuuid.cpp -o mkuuid
$ ./mkuuid
2c186eb0-89cf-4a3c-9b97-86db1670d5f4
$ ./mkuuid
a9d3fbb9-0383-4389-a8a8-61f6629f90b6