C++
11
Added in Boost
1.42.0
This Release
Andy Tompkins
Andy Tompkins
Author
James E. King, III
James E. King, III
Maintainer
Peter Dimov
Peter Dimov
Contributor
Dependencies
Assert
Config
ThrowException
Type Traits
Boost.Uuid
Boost.Uuid, part of Boost C++ Libraries, provides a C++ implementation of Universally Unique Identifiers (UUID) as described in RFC 4122 and RFC 9562.
See the documentation for more information.
License
Distributed under the Boost Software License, Version 1.0.
Properties
- C++11 (since Boost 1.86.0)
- Header-only
Current Status
Branch | Github Actions | Appveyor | Dependencies | Documentation | Test Matrix |
---|---|---|---|---|---|
master |
Build Status | Build status | Deps | Documentation | Enter the Matrix |
develop |
Build Status | Build status | Deps | Documentation | Enter the Matrix |
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 the 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
// mkuuid.cpp example
#include <boost/uuid.hpp>
#include <iostream>
int main()
{
boost::uuids::random_generator gen;
std::cout << gen() << std::endl;
}
$ clang++ -Wall -Wextra -std=c++11 -O2 mkuuid.cpp -o mkuuid
$ ./mkuuid
2c186eb0-89cf-4a3c-9b97-86db1670d5f4
$ ./mkuuid
a9d3fbb9-0383-4389-a8a8-61f6629f90b6
All Time
Rene Rivera
Rene Rivera
Contributor
Andrey Semashev
Andrey Semashev
Contributor
Edward Diener
Edward Diener
Contributor
Marshall Clow
Marshall Clow
Contributor
Beman Dawes
Beman Dawes
Contributor
Takeshi Abe
Takeshi Abe
Contributor
Daniel James
Daniel James
Contributor
Antony Polukhin
Antony Polukhin
Contributor
Braden Ganetsky
Braden Ganetsky
Contributor
Ahmed Charles
Ahmed Charles
Contributor
Vemund Handeland
Vemund Handeland
Contributor
Marcel Raad
Marcel Raad
Contributor
Peter Dimov
Peter Dimov
Contributor
Alexander Grund
Alexander Grund
Contributor
Steven Watanabe
Steven Watanabe
Contributor
Bryce Adelstein-Lelbach
Bryce Adelstein-Lelbach
Contributor
Volo Zyko
Volo Zyko
Contributor
Gudmundur Adalsteinsson
Gudmundur Adalsteinsson
Contributor
aldonin
aldonin
Contributor
Tobias Klauser
Tobias Klauser
Contributor
tomy2105
tomy2105
Contributor
Marcel Raad
Marcel Raad
Contributor
Jürgen Hunold
Jürgen Hunold
Contributor
Edward Diener
Edward Diener
Contributor
Michael Caisse
Michael Caisse
Contributor
LeonineKing1199
LeonineKing1199
Contributor
Tinko Bartels
Tinko Bartels
Contributor