| 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 16 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
| inlineconstexpr

Definition at line 21 of file comparable.h.

21 {
22 return id == other.id;
23 }

References id.

## Member Data Documentation

## ◆ id

size_t impeller::UniqueID::id

Definition at line 17 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:17