libstud-uuid

[brief]

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 and the NEWS file for changes. See the cppget.org/libstud-uuid package page for build status.

license MIT
project libstud
url github.com/libstud/libstud-uuid
topics C++UUIDidentification
5 Versions
version 1.0.4
repository pkg:cppget.org/stable
depends 0
version 1.0.3
repository pkg:cppget.org/stable
depends 0
version 1.0.2
repository pkg:cppget.org/legacy
depends 0
version 1.0.1+1
repository pkg:cppget.org/legacy
depends 0
version 1.0.0
repository pkg:cppget.org/legacy
depends 0