g2o
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
g2o::internal::TrivialPair Struct Reference

#include <base_fixed_sized_edge.h>

Public Member Functions

constexpr TrivialPair (int f, int s)
 
bool operator== (const TrivialPair &other) const
 

Public Attributes

int first
 
int second
 

Detailed Description

A trivial pair that has a constexpr c'tor. std::pair in C++11 has not a constexpr c'tor.

Definition at line 68 of file base_fixed_sized_edge.h.

Constructor & Destructor Documentation

◆ TrivialPair()

constexpr g2o::internal::TrivialPair::TrivialPair ( int  f,
int  s 
)
inlineconstexpr

Member Function Documentation

◆ operator==()

bool g2o::internal::TrivialPair::operator== ( const TrivialPair other) const
inline

Definition at line 71 of file base_fixed_sized_edge.h.

71 {
72 return first == other.first && second == other.second;
73 }

References first, and second.

Member Data Documentation

◆ first

int g2o::internal::TrivialPair::first

Definition at line 69 of file base_fixed_sized_edge.h.

Referenced by operator==().

◆ second

int g2o::internal::TrivialPair::second

Definition at line 69 of file base_fixed_sized_edge.h.

Referenced by operator==().


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