DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
docwire::unique_identifier Class Reference

The class represents unique (for a single program run) identifier of an object. More...

#include <unique_identifier.h>

Public Member Functions

 unique_identifier ()
 Default constructor that generates new unique identifier.
 
 unique_identifier (const unique_identifier &)=default
 Copy constructor.
 
unique_identifieroperator= (const unique_identifier &)=default
 Copy assignment operator.
 
std::strong_ordering operator<=> (const unique_identifier &other) const
 Compare two unique identifiers. More...
 
bool operator== (const unique_identifier &other) const =default
 

Friends

struct std::hash< unique_identifier >
 

Detailed Description

The class represents unique (for a single program run) identifier of an object.

The class has a default constructor that generates new unique identifiers. Generation, copying and comparison of identifiers should be very fast. Generation is thread-safe, which means that identifiers will not be duplicated between different threads.

Definition at line 30 of file unique_identifier.h.

Member Function Documentation

◆ operator<=>()

std::strong_ordering docwire::unique_identifier::operator<=> ( const unique_identifier other) const
inline

Compare two unique identifiers.

Parameters
otherIdentifier to compare with.
Returns
Strong ordering between this and other identifiers.

Definition at line 54 of file unique_identifier.h.


The documentation for this class was generated from the following file: