Molassembler  1.0.0
Molecule graph and conformer library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Scine::Molassembler::Temple::Pair< T, U > Struct Template Reference

Heterogeneous pair type. More...

#include <Pair.h>

Public Member Functions

Constructors
constexpr Pair ()
 Value constructor by copy.
 
constexpr Pair (const T &passFirst, const U &passSecond)
 Value constructor by copy.
 
constexpr Pair (T &&passFirst, U &&passSecond)
 Value constructor by move.
 
Special member functions
constexpr Pair (const Pair &other)
 Copy constructor.
 
constexpr Pair (Pair &&other) noexcept
 Move constructor.
 
constexpr Pairoperator= (const Pair &other)
 Copy assignment.
 
constexpr Pairoperator= (Pair &&other) noexcept
 Move assignment.
 
 ~Pair ()=default
 Copy constructor.
 
Operators
PURITY_WEAK constexpr bool operator< (const Pair &other) const
 Lexicographical comparison.
 
PURITY_WEAK constexpr bool operator> (const Pair &other) const
 Lexicographical comparison.
 
PURITY_WEAK constexpr bool operator== (const Pair &other) const
 Lexicographical comparison.
 
PURITY_WEAK constexpr bool operator!= (const Pair &other) const
 Lexicographical comparison.
 

Data Fields

State
first
 
second
 

Detailed Description

template<typename T, typename U>
struct Scine::Molassembler::Temple::Pair< T, U >

Heterogeneous pair type.

Requires that both types T and U are default-constructible.


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