11 #ifndef EIGEN_STL_DETAILS_H
12 #define EIGEN_STL_DETAILS_H
14 #ifndef EIGEN_ALIGNED_ALLOCATOR
15 #define EIGEN_ALIGNED_ALLOCATOR Eigen::aligned_allocator
54 #define EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T) \
55 std::conditional_t<Eigen::internal::is_arithmetic<T>::value, T, Eigen::internal::workaround_msvc_stl_support<T> >
58 template<
typename T>
struct workaround_msvc_stl_support :
public T
60 inline workaround_msvc_stl_support() :
T() {}
61 inline workaround_msvc_stl_support(
const T& other) :
T(other) {}
62 inline operator T& () {
return *
static_cast<T*
>(
this); }
63 inline operator const T& ()
const {
return *
static_cast<const T*
>(
this); }
64 template<
typename OtherT>
65 inline T& operator=(
const OtherT& other)
66 { T::operator=(other);
return *
this; }
67 inline workaround_msvc_stl_support& operator=(
const workaround_msvc_stl_support& other)
68 { T::operator=(other);
return *
this; }
74 #define EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T) T
aligned_allocator_indirection(const aligned_allocator_indirection< U > &)
std::ptrdiff_t difference_type
~aligned_allocator_indirection()
aligned_allocator_indirection(const EIGEN_ALIGNED_ALLOCATOR< U > &)
aligned_allocator_indirection(const aligned_allocator_indirection &)
aligned_allocator_indirection()
aligned_allocator_indirection(const EIGEN_ALIGNED_ALLOCATOR< T > &)
const T & const_reference
aligned_allocator_indirection< U > other