MIRA
IsCopyAssignable< T > Class Template Reference

Type trait that evaluates to true if a type is copy assignable, false otherwise. More...

#include <utils/IsCopyAssignable.h>

Inheritance diagram for IsCopyAssignable< T >:
Inheritance graph
[legend]

Detailed Description

template<typename T>
class mira::IsCopyAssignable< T >

Type trait that evaluates to true if a type is copy assignable, false otherwise.

This can be used (e.g. by the serialization framework) to instantiate code that does not require assignment at compile time, ensuring successful compilation (some operations may depend on assignment and thus fail at runtime when executed, e.g. throw an exception).

By default this trait inherits from std::is_copy_assignable<>. In contrast to std::is_copy_assignable<>, it is meant to be explicitly specialized for used types for which the validity of an assignment operator can not be properly checked, e.g. std::vector<boost::noncopyable>.


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