Uuid, part of collection of the Boost C++ Libraries, provides a C++ wrapper around RFC-4122 UUIDs.
Distributed under the Boost Software License, Version 1.0.
| Branch | Travis | Appveyor | Coverity Scan | codecov.io | Documentation | Regression Tests |
|---|---|---|---|---|---|---|
| master | ||||||
| develop |
[uuid] tag at the beginning of the subject line.// Copyright 2017 James E. King, III
// Distributed under the Boost Software License, Version 1.0.
// (See http://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
<p>Uuid, part of collection of the <a href="http://github.com/boostorg">Boost C++ Libraries</a>, provides a C++ wrapper around <a href="http://www.ietf.org/rfc/rfc4122.txt">RFC-4122</a> UUIDs.</p> <h3>License</h3> <p>Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</p> <h3>Properties</h3> <ul> <li>C++03</li> <li>Header-only</li> </ul> <h3>Build Status</h3> <table> <thead> <tr> <th align="left">Branch</th> <th align="left">Travis</th> <th align="left">Appveyor</th> <th align="left">Coverity Scan</th> <th align="left">codecov.io</th> <th align="left">Documentation</th> <th align="left">Regression Tests</th> </tr> </thead> <tbody> <tr> <td align="left"><a href="https://github.com/boostorg/uuid/tree/master">master</a></td> <td align="left"><a href="https://travis-ci.org/boostorg/uuid"><img src="https://travis-ci.org/boostorg/uuid.svg?branch=master" alt="Build Status" /></a></td> <td align="left"><a href="https://ci.appveyor.com/project/boostorg/uuid/branch/master"><img src="https://ci.appveyor.com/api/projects/status/nuihr6s92fjb9gwy/branch/master?svg=true" alt="Build status" /></a></td> <td align="left"><a href="https://scan.coverity.com/projects/boostorg-uuid"><img src="https://scan.coverity.com/projects/13982/badge.svg" alt="Coverity Scan Build Status" /></a></td> <td align="left"><a href="https://codecov.io/gh/boostorg/uuid/branch/master"><img src="https://codecov.io/gh/boostorg/uuid/branch/master/graph/badge.svg" alt="codecov" /></a></td> <td align="left"><a href="http://www.boost.org/doc/libs/master/libs/uuid/doc/index.html"><img src="https://img.shields.io/badge/documentation-master-brightgreen.svg" alt="Documentation" /></a></td> <td align="left"><a href="http://www.boost.org/development/tests/master/developer/uuid.html"><img src="https://img.shields.io/badge/matrix-master-brightgreen.svg" alt="Enter the Matrix" /></a></td> </tr> <tr> <td align="left"><a href="https://github.com/boostorg/uuid/tree/develop">develop</a></td> <td align="left"><a href="https://travis-ci.org/boostorg/uuid"><img src="https://travis-ci.org/boostorg/uuid.svg?branch=develop" alt="Build Status" /></a></td> <td align="left"><a href="https://ci.appveyor.com/project/boostorg/uuid/branch/develop"><img src="https://ci.appveyor.com/api/projects/status/nuihr6s92fjb9gwy/branch/develop?svg=true" alt="Build status" /></a></td> <td align="left"></td> <td align="left"><a href="https://codecov.io/gh/boostorg/uuid/branch/develop"><img src="https://codecov.io/gh/boostorg/uuid/branch/develop/graph/badge.svg" alt="codecov" /></a></td> <td align="left"><a href="http://www.boost.org/doc/libs/develop/libs/uuid/doc/index.html"><img src="https://img.shields.io/badge/documentation-develop-brightgreen.svg" alt="Documentation" /></a></td> <td align="left"><a href="http://www.boost.org/development/tests/develop/developer/uuid.html"><img src="https://img.shields.io/badge/matrix-develop-brightgreen.svg" alt="Enter the Matrix" /></a></td> </tr> </tbody> </table> <h3>Directories</h3> <ul> <li><strong>doc</strong> - Dcumentation</li> <li><strong>include</strong> - Interface headers of Uuid</li> <li><strong>test</strong> - Uuid unit tests</li> </ul> <h3>More information</h3> <ul> <li><a href="http://boost.org/libs/uuid">Documentation</a></li> <li><a href="http://stackoverflow.com/questions/ask?tags=c%2B%2B,boost,boost-uuid">Ask questions</a></li> <li><a href="https://github.com/boostorg/uuid/issues">Report bugs</a>: 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.</li> <li>Submit your patches as pull requests against <strong>develop</strong> branch. Note that by submitting patches you agree to license your modifications under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</li> <li>Discussions about the library are held on the <a href="http://www.boost.org/community/groups.html#main">Boost developers mailing list</a>. Be sure to read the <a href="http://www.boost.org/community/policy.html">discussion policy</a> before posting and add the <code>[uuid]</code> tag at the beginning of the subject line.</li> </ul> <h3>Code Example - UUID Generation</h3> <pre class="highlightjs highlight"><code class="language- hljs">// Copyright 2017 James E. King, III // Distributed under the Boost Software License, Version 1.0. // (See http://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 </code></pre>
<p>Uuid, part of collection of the <a href="http://github.com/boostorg">Boost C++ Libraries</a>, provides a C++ wrapper around <a href="http://www.ietf.org/rfc/rfc4122.txt">RFC-4122</a> UUIDs.</p> <h3>License</h3> <p>Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</p> <h3>Properties</h3> <ul> <li>C++03</li> <li>Header-only</li> </ul> <h3>Build Status</h3> <table> <thead> <tr> <th align="left">Branch</th> <th align="left">Travis</th> <th align="left">Appveyor</th> <th align="left">Coverity Scan</th> <th align="left">codecov.io</th> <th align="left">Documentation</th> <th align="left">Regression Tests</th> </tr> </thead> <tbody> <tr> <td align="left"><a href="https://github.com/boostorg/uuid/tree/master">master</a></td> <td align="left"><a href="https://travis-ci.org/boostorg/uuid"><img src="https://travis-ci.org/boostorg/uuid.svg?branch=master" alt="Build Status" /></a></td> <td align="left"><a href="https://ci.appveyor.com/project/boostorg/uuid/branch/master"><img src="https://ci.appveyor.com/api/projects/status/nuihr6s92fjb9gwy/branch/master?svg=true" alt="Build status" /></a></td> <td align="left"><a href="https://scan.coverity.com/projects/boostorg-uuid"><img src="https://scan.coverity.com/projects/13982/badge.svg" alt="Coverity Scan Build Status" /></a></td> <td align="left"><a href="https://codecov.io/gh/boostorg/uuid/branch/master"><img src="https://codecov.io/gh/boostorg/uuid/branch/master/graph/badge.svg" alt="codecov" /></a></td> <td align="left"><a href="http://www.boost.org/doc/libs/master/libs/uuid/doc/index.html"><img src="https://img.shields.io/badge/documentation-master-brightgreen.svg" alt="Documentation" /></a></td> <td align="left"><a href="http://www.boost.org/development/tests/master/developer/uuid.html"><img src="https://img.shields.io/badge/matrix-master-brightgreen.svg" alt="Enter the Matrix" /></a></td> </tr> <tr> <td align="left"><a href="https://github.com/boostorg/uuid/tree/develop">develop</a></td> <td align="left"><a href="https://travis-ci.org/boostorg/uuid"><img src="https://travis-ci.org/boostorg/uuid.svg?branch=develop" alt="Build Status" /></a></td> <td align="left"><a href="https://ci.appveyor.com/project/boostorg/uuid/branch/develop"><img src="https://ci.appveyor.com/api/projects/status/nuihr6s92fjb9gwy/branch/develop?svg=true" alt="Build status" /></a></td> <td align="left"></td> <td align="left"><a href="https://codecov.io/gh/boostorg/uuid/branch/develop"><img src="https://codecov.io/gh/boostorg/uuid/branch/develop/graph/badge.svg" alt="codecov" /></a></td> <td align="left"><a href="http://www.boost.org/doc/libs/develop/libs/uuid/doc/index.html"><img src="https://img.shields.io/badge/documentation-develop-brightgreen.svg" alt="Documentation" /></a></td> <td align="left"><a href="http://www.boost.org/development/tests/develop/developer/uuid.html"><img src="https://img.shields.io/badge/matrix-develop-brightgreen.svg" alt="Enter the Matrix" /></a></td> </tr> </tbody> </table> <h3>Directories</h3> <ul> <li><strong>doc</strong> - Dcumentation</li> <li><strong>include</strong> - Interface headers of Uuid</li> <li><strong>test</strong> - Uuid unit tests</li> </ul> <h3>More information</h3> <ul> <li><a href="http://boost.org/libs/uuid">Documentation</a></li> <li><a href="http://stackoverflow.com/questions/ask?tags=c%2B%2B,boost,boost-uuid">Ask questions</a></li> <li><a href="https://github.com/boostorg/uuid/issues">Report bugs</a>: 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.</li> <li>Submit your patches as pull requests against <strong>develop</strong> branch. Note that by submitting patches you agree to license your modifications under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</li> <li>Discussions about the library are held on the <a href="http://www.boost.org/community/groups.html#main">Boost developers mailing list</a>. Be sure to read the <a href="http://www.boost.org/community/policy.html">discussion policy</a> before posting and add the <code>[uuid]</code> tag at the beginning of the subject line.</li> </ul> <h3>Code Example - UUID Generation</h3> <pre class="highlightjs highlight"><code class="language- hljs">// Copyright 2017 James E. King, III // Distributed under the Boost Software License, Version 1.0. // (See http://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 </code></pre>