Portable UUID generation library for C++
This build2 package contains a portable, dependency-free 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 ()); // Generate 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, Clang >= 3.8, MSVC >= 14u3.
Changes
Version 1.0.0
* First public release.