Public Member Functions | Public Attributes | Friends | List of all members
RGB Struct Reference

Public Member Functions

constexpr bool empty ()
 
constexpr bool empty ()
 
constexpr bool operator== (RGB rgb) const noexcept
 
constexpr bool operator== (RGB rgb) const noexcept
 

Public Attributes

std::uint8_t b {}
 
std::uint8_t g {}
 
std::uint8_t r {}
 

Friends

std::ostream & operator<< (std::ostream &ostream, RGB rgb)
 
std::ostream & operator<< (std::ostream &ostream, RGB rgb)
 

Detailed Description

Definition at line 34 of file example_containers_array.cpp.

Member Function Documentation

◆ empty() [1/2]

constexpr bool RGB::empty ( )
inlineconstexpr

Definition at line 40 of file example_containers_array.cpp.

◆ empty() [2/2]

constexpr bool RGB::empty ( )
inlineconstexpr

Definition at line 55 of file test_containers.cpp.

◆ operator==() [1/2]

constexpr bool RGB::operator== ( RGB  rgb) const
inlineconstexprnoexcept

Definition at line 42 of file example_containers_array.cpp.

◆ operator==() [2/2]

constexpr bool RGB::operator== ( RGB  rgb) const
inlineconstexprnoexcept

Definition at line 57 of file test_containers.cpp.

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  ostream,
RGB  rgb 
)
friend

Definition at line 44 of file example_containers_array.cpp.

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  ostream,
RGB  rgb 
)
friend

Definition at line 59 of file test_containers.cpp.

Member Data Documentation

◆ b

std::uint8_t RGB::b {}

Definition at line 38 of file example_containers_array.cpp.

◆ g

std::uint8_t RGB::g {}

Definition at line 37 of file example_containers_array.cpp.

◆ r

std::uint8_t RGB::r {}

Definition at line 36 of file example_containers_array.cpp.


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


magic_enum
Author(s):
autogenerated on Fri Feb 21 2025 03:20:19