| Flutter Impeller |

Public Member Functions | Public Attributes | List of all members
impeller::UniqueID Struct Reference

`#include <comparable.h>`

## Public Member Functions
| UniqueID ()
constexpr bool | operator== (const UniqueID &other) const

## Public Attributes
size_t | id

## Detailed Description

Definition at line 19 of file comparable.h.

## Constructor & Destructor Documentation

## ◆ UniqueID()

impeller::UniqueID::UniqueID | ( |  | ) |

Definition at line 12 of file comparable.cc.

12 : id(++sLastID) {}

## Member Function Documentation

## ◆ operator==()

constexpr bool impeller::UniqueID::operator== | ( | const UniqueID & | other | ) | const
| inline constexpr

Definition at line 24 of file comparable.h.

24 {
25 return id == other.id;
26 }

References id.

## Member Data Documentation

## ◆ id

size_t impeller::UniqueID::id

Definition at line 20 of file comparable.h.

Referenced by std::less< impeller::UniqueID >::operator()(), and operator==().

The documentation for this struct was generated from the following files:

- impeller/base/comparable.h
- impeller/base/comparable.cc

impeller::sLastID
static std::atomic_size_t sLastID
Definition: comparable.cc:11
impeller::UniqueID::id
size_t id
Definition: comparable.h:20