xtd 0.2.0
xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >::equator Struct Reference

Definition

template<class key_t, class value_t, class hasher_t = helpers::hasher<key_t>, class equator_t = helpers::equator<key_t>, class allocator_t = helpers::allocator<std::pair<const key_t, value_t>>>
struct xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >::equator

Represents the dictionary equator type.

Public Aliases

using first_argument_type = key_t
 Represents the first argument type.
 
using second_argument_type = key_t
 Represents the second argument type.
 
using result_type = bool
 Represents the result type.
 

Public Operators

bool operator() (const key_t &a, const key_t &b) const
 checks if the specified a and b keys are equal.
 

Member Typedef Documentation

◆ first_argument_type

template<class key_t , class value_t , class hasher_t = helpers::hasher<key_t>, class equator_t = helpers::equator<key_t>, class allocator_t = helpers::allocator<std::pair<const key_t, value_t>>>
using xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >::equator::first_argument_type = key_t

Represents the first argument type.

◆ second_argument_type

template<class key_t , class value_t , class hasher_t = helpers::hasher<key_t>, class equator_t = helpers::equator<key_t>, class allocator_t = helpers::allocator<std::pair<const key_t, value_t>>>
using xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >::equator::second_argument_type = key_t

Represents the second argument type.

◆ result_type

template<class key_t , class value_t , class hasher_t = helpers::hasher<key_t>, class equator_t = helpers::equator<key_t>, class allocator_t = helpers::allocator<std::pair<const key_t, value_t>>>
using xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >::equator::result_type = bool

Represents the result type.

Member Function Documentation

◆ operator()()

template<class key_t , class value_t , class hasher_t = helpers::hasher<key_t>, class equator_t = helpers::equator<key_t>, class allocator_t = helpers::allocator<std::pair<const key_t, value_t>>>
bool xtd::collections::generic::dictionary< key_t, value_t, hasher_t, equator_t, allocator_t >::equator::operator() ( const key_t &  a,
const key_t &  b 
) const
inline

checks if the specified a and b keys are equal.

Parameters
aThe first key to check.
bThe second key to check.
Returns
true if keys are equals; otherwise false.
Remarks
If key_t inherits from xtd::object, the xtd::object::equals method will be used; otherwise, the std::equal_to object function will be used.

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