operator==,!=,>,<,>=,<=

Navigation:  NxLib API > C++ Interface > NxLibItem >

operator==,!=,>,<,>=,<=

Previous pageReturn to chapter overviewNext page

Compare the item's value to a constant. All comparison operators are templates and map to a corresponding call to the compare member function.

Signatures

Note: All variants of this function will throw exceptions on API errors!

template <typename T> bool operator==(T const& value) const

template <typename T> bool operator!=(T const& value) const

template <typename T> bool operator> (T const& value) const

template <typename T> bool operator>=(T const& value) const

template <typename T> bool operator< (T const& value) const

template <typename T> bool operator<=(T const& value) const

Parameters

value

The value to compare the item's value with

Return Value

Boolean result of the comparison.