QMCPACK
scalar_traits< std::complex< T > > Struct Template Reference
+ Collaboration diagram for scalar_traits< std::complex< T > >:

Public Types

enum  { DIM = 2 }
 
using real_type = T
 
using value_type = std::complex< T >
 

Static Public Member Functions

static T * get_address (std::complex< T > *a)
 

Detailed Description

template<typename T>
struct qmcplusplus::scalar_traits< std::complex< T > >

Definition at line 40 of file container_proxy.h.

Member Typedef Documentation

◆ real_type

using real_type = T

Definition at line 46 of file container_proxy.h.

◆ value_type

using value_type = std::complex<T>

Definition at line 47 of file container_proxy.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DIM 

Definition at line 42 of file container_proxy.h.

Member Function Documentation

◆ get_address()

static T* get_address ( std::complex< T > *  a)
inlinestatic

Definition at line 48 of file container_proxy.h.

48 { return reinterpret_cast<T*>(a); }

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