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
23 class aligned_allocator_indirection :
public EIGEN_ALIGNED_ALLOCATOR<T>
26 typedef std::size_t size_type;
27 typedef std::ptrdiff_t difference_type;
29 typedef const T* const_pointer;
31 typedef const T& const_reference;
37 typedef aligned_allocator_indirection<U> other;
40 aligned_allocator_indirection() {}
41 aligned_allocator_indirection(
const aligned_allocator_indirection& ) : EIGEN_ALIGNED_ALLOCATOR<T>() {}
42 aligned_allocator_indirection(
const EIGEN_ALIGNED_ALLOCATOR<T>& ) {}
44 aligned_allocator_indirection(
const aligned_allocator_indirection<U>& ) {}
46 aligned_allocator_indirection(
const EIGEN_ALIGNED_ALLOCATOR<U>& ) {}
47 ~aligned_allocator_indirection() {}
55#define EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T) \
56 typename Eigen::internal::conditional< \
57 Eigen::internal::is_arithmetic<T>::value, \
59 Eigen::internal::workaround_msvc_stl_support<T> \
63 template<
typename T>
struct workaround_msvc_stl_support :
public T
65 inline workaround_msvc_stl_support() : T() {}
66 inline workaround_msvc_stl_support(
const T& other) : T(other) {}
67 inline operator T& () {
return *
static_cast<T*
>(
this); }
68 inline operator const T& ()
const {
return *
static_cast<const T*
>(
this); }
69 template<
typename OtherT>
70 inline T& operator=(
const OtherT& other)
71 { T::operator=(other);
return *
this; }
72 inline workaround_msvc_stl_support& operator=(
const workaround_msvc_stl_support& other)
73 { T::operator=(other);
return *
this; }
79#define EIGEN_WORKAROUND_MSVC_STL_SUPPORT(T) T
Namespace containing all symbols from the Eigen library.
Definition Core:141