Portable UUID generation library for C++
A portable, dependency-free, MIT-licensed UUID generation library for C++ that makes sure the generated IDs are actually unique.
Typical usage:
#include <string>
#include <iostream>
#include <libstud/uuid/uuid.hxx>
#include <libstud/uuid/uuid-io.hxx>
int main ()
{
using stud::uuid;
using namespace std;
uuid u (uuid::generate ()); // Make strong ID using system generator.
string s (u.string ()); // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
cout << u << endl; // Print string representation.
}
See the libstud/uuid/uuid.hxx
header for interface details. See
the NEWS
file for changes.
Supported platforms:
- Linux
- Windows
- Mac OS
- FreeBSD
Supported compilers:
- GCC 4.9 or later
- Clang 3.8 or later
- MSVC 14.3 or later
version | 1.0.2 |
---|---|
license | MIT |
repository | https://pkg.cppget.org/1/legacy |
download | libstud-uuid-1.0.2.tar.gz |
sha256 | 39841cac0dad7c4bb92a5771650cf6d89fe494b9a4abe77fd91759da10e0efb8 |
project | libstud |
---|---|
url | github.com/libstud/libstud-uuid |
boris@codesynthesis.com | |
topics | uuididentification |
Changes
Version 1.0.0 * First public release.