图  0.1
数据结构_第13章
Set::Set< Key_T, Other_T > Struct Template Reference

#include <Set.h>

Collaboration diagram for Set::Set< Key_T, Other_T >:

Public Member Functions

 Set (const Key_T &key, const Other_T &other=Other_T{})
 c 其他值 More...
 

Public Attributes

Key_T key_
 
Other_T other_
 c 键值 More...
 

Friends

bool operator< (const Set &lhs, const Set &rhs)
 operator< More...
 
bool operator> (const Set &lhs, const Set &rhs)
 operator> More...
 
bool operator<= (const Set &lhs, const Set &rhs)
 operator<= More...
 
bool operator>= (const Set &lhs, const Set &rhs)
 operator>= More...
 
bool operator== (const Set &lhs, const Set &rhs)
 operator== More...
 
bool operator!= (const Set &lhs, const Set &rhs)
 operator!= More...
 

Detailed Description

template<class Key_T, class Other_T = Key_T>
struct Set::Set< Key_T, Other_T >

Definition at line 26 of file Set.h.

Constructor & Destructor Documentation

◆ Set()

template<class Key_T , class Other_T = Key_T>
Set::Set< Key_T, Other_T >::Set ( const Key_T &  key,
const Other_T &  other = Other_T{} 
)
inlineexplicit

c 其他值

Construct a new Set object

Parameters
key键值
other其他值

Definition at line 39 of file Set.h.

Friends And Related Function Documentation

◆ operator!=

template<class Key_T , class Other_T = Key_T>
bool operator!= ( const Set< Key_T, Other_T > &  lhs,
const Set< Key_T, Other_T > &  rhs 
)
friend

operator!=

Parameters
lhslhs
rhsrhs
Returns
true !=
false ==

Definition at line 100 of file Set.h.

◆ operator<

template<class Key_T , class Other_T = Key_T>
bool operator< ( const Set< Key_T, Other_T > &  lhs,
const Set< Key_T, Other_T > &  rhs 
)
friend

operator<

Parameters
lhslhs
rhsrhs
Returns
true <
false >=

Definition at line 50 of file Set.h.

◆ operator<=

template<class Key_T , class Other_T = Key_T>
bool operator<= ( const Set< Key_T, Other_T > &  lhs,
const Set< Key_T, Other_T > &  rhs 
)
friend

operator<=

Parameters
lhslhs
rhsrhs
Returns
true <=
false >

Definition at line 70 of file Set.h.

◆ operator==

template<class Key_T , class Other_T = Key_T>
bool operator== ( const Set< Key_T, Other_T > &  lhs,
const Set< Key_T, Other_T > &  rhs 
)
friend

operator==

Parameters
lhslhs
rhsrhs
Returns
true ==
false !

Definition at line 90 of file Set.h.

◆ operator>

template<class Key_T , class Other_T = Key_T>
bool operator> ( const Set< Key_T, Other_T > &  lhs,
const Set< Key_T, Other_T > &  rhs 
)
friend

operator>

Parameters
lhslhs
rhsrhs
Returns
true >
false <=

Definition at line 60 of file Set.h.

◆ operator>=

template<class Key_T , class Other_T = Key_T>
bool operator>= ( const Set< Key_T, Other_T > &  lhs,
const Set< Key_T, Other_T > &  rhs 
)
friend

operator>=

Parameters
lhslhs
rhsrhs
Returns
true >=
false <

Definition at line 80 of file Set.h.

Member Data Documentation

◆ key_

template<class Key_T , class Other_T = Key_T>
Key_T Set::Set< Key_T, Other_T >::key_

Definition at line 29 of file Set.h.

◆ other_

template<class Key_T , class Other_T = Key_T>
Other_T Set::Set< Key_T, Other_T >::other_

c 键值

Definition at line 30 of file Set.h.


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