HILA
Loading...
Searching...
No Matches
hila::has_unary_minus< T, A > Class Template Reference

Conditionally reture bool type false if type T does't have unary - operator. More...

#include <has_unary_minus.h>

Detailed Description

template<typename T, typename A = void>
class hila::has_unary_minus< T, A >

Conditionally reture bool type false if type T does't have unary - operator.

If the type T does not implement -T (unary -) operator, i.e.

T T::operator-() const { ... }

, has_unary_minus::value is false. This is needed for antiperiodic boundary conditions

Note
value is false for unsigned type, whereas c++ allows -unsigned

Definition at line 24 of file has_unary_minus.h.


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