Skip to content
Ned Bingham edited this page Mar 17, 2017 · 5 revisions

std/implier.h


template <class ktype, class vtype> struct implier

Contains a key and value of different types to facilitate comparison, search, and sorting of mapped elements.

Member Variables

  • ktype key is used to index value
  • vtype value

Member Functions

Constructor

implier() is the default constructor, calling the default constructors of key and value.

implier(ktype k, vtype v) sets key to k and value to v.

Non-Member Functions

Comparison

operator==(implier<ktype, vtype> i0, implier<ktype, vtype> i1)
operator!=(implier<ktype, vtype> i0, implier<ktype, vtype> i1)
operator<(implier<ktype, vtype> i0, implier<ktype, vtype> i1)
operator>(implier<ktype, vtype> i0, implier<ktype, vtype> i1)
operator<=(implier<ktype, vtype> i0, implier<ktype, vtype> i1)
operator>=(implier<ktype, vtype> i0, implier<ktype, vtype> i1)

Compares two impliers by comparing their key member variables.

operator==(implier<ktype, vtype> i0, ktype i1)
operator!=(implier<ktype, vtype> i0, ktype i1)
operator<(implier<ktype, vtype> i0, ktype i1)
operator>(implier<ktype, vtype> i0, ktype i1)
operator<=(implier<ktype, vtype> i0, ktype i1)
operator>=(implier<ktype, vtype> i0, ktype i1)
operator==(ktype i0, implier<ktype, vtype> i1)
operator!=(ktype i0, implier<ktype, vtype> i1)
operator<(ktype i0, implier<ktype, vtype> i1)
operator>(ktype i0, implier<ktype, vtype> i1)
operator<=(ktype i0, implier<ktype, vtype> i1)
operator>=(ktype i0, implier<ktype, vtype> i1)

Compare an implier's key to another key of the same type.

Simple Containers

Standard Containers

Interface Containers

Specialized Containers

Input/Output

Algorithm

Clone this wiki locally