ObjectGuid is an object in C++ programming language that represents a globally unique identifier (GUID). A GUID is a 128-bit value that is used to identify resources like files, objects, and components in a networked environment. ObjectGuid is included in the Boost C++ libraries.
Example:
#include #include
using namespace boost::uuids;
uuid id = random_generator()(); // generates a random GUID uuid id2 = string_generator()("01234567-89ab-cdef-0123-456789abcdef"); // creates a GUID from a string
The above example demonstrates two ways in which you can generate a GUID using ObjectGuid. The first line uses a random_generator to generate a random GUID. The second line uses a string_generator to create a GUID from a string.
Package Library: Boost C++ Library.
C++ (Cpp) ObjectGuid - 30 examples found. These are the top rated real world C++ (Cpp) examples of ObjectGuid extracted from open source projects. You can rate examples to help us improve the quality of examples.