MIRA
has_assign< T, U > Class Template Reference

Evaluates to std::true_type, if U can be assigned to T, i.e. More...

#include <utils/HasAssign.h>

Inheritance diagram for has_assign< T, U >:
Inheritance graph
[legend]

Detailed Description

template<typename T, typename U>
class mira::has_assign< T, U >

Evaluates to std::true_type, if U can be assigned to T, i.e.

if T has an assignment T::operator=(const U&) that allows

T t;
U u;
t = u;

Unfortunatelly, there is no way to detect, whether the assignment operator is public accessible or private. If it is private, this type trait will produce a compiler error.


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