Eigen::Pair< U, V > Struct Template Reference

#include <TensorMeta.h>

Public Types

typedef U first_type
 
typedef V second_type
 

Public Member Functions

EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Pair ()
 
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Pair (const U &f, const V &s)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void swap (Pair &rhs)
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEWfirst
 
V second
 

Member Typedef Documentation

◆ first_type

template<typename U , typename V >
typedef U Eigen::Pair< U, V >::first_type

◆ second_type

template<typename U , typename V >
typedef V Eigen::Pair< U, V >::second_type

Constructor & Destructor Documentation

◆ Pair() [1/2]

template<typename U , typename V >
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Pair< U, V >::Pair ( )
inline
215 : first(), second() {}
V second
Definition: TensorMeta.h:210
EIGEN_MAKE_ALIGNED_OPERATOR_NEW U first
Definition: TensorMeta.h:209

◆ Pair() [2/2]

template<typename U , typename V >
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Pair< U, V >::Pair ( const U &  f,
const V s 
)
inline
217 : first(f), second(s) {}
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
Definition: cxx11_tensor_map.cpp:237
RealScalar s
Definition: level1_cplx_impl.h:130

Member Function Documentation

◆ swap()

template<typename U , typename V >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::Pair< U, V >::swap ( Pair< U, V > &  rhs)
inline
219  {
220  using numext::swap;
221  swap(first, rhs.first);
222  swap(second, rhs.second);
223  }
EIGEN_STRONG_INLINE void swap(T &a, T &b)
Definition: Meta.h:536
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void swap(Pair &rhs)
Definition: TensorMeta.h:219

References Eigen::Pair< U, V >::first, Eigen::Pair< U, V >::second, and Eigen::numext::swap().

Member Data Documentation

◆ first

template<typename U , typename V >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW U Eigen::Pair< U, V >::first

◆ second

template<typename U , typename V >
V Eigen::Pair< U, V >::second

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