5 #ifndef _SPICA_TRIPLET_H_
6 #define _SPICA_TRIPLET_H_
14 template <
class T,
class Enable =
void>
18 class Triplet_<T, typename std::enable_if<std::is_arithmetic<T>::value>::type> {
20 std::array<T, 3> _data;
36 this->operator=(triplet);
43 this->_data = triplet._data;
47 T operator[](
int i)
const {
48 Assertion(0 <= i && i <= 2,
"access index out of bounds!");
57 #endif // _SPICA_TRIPLET_H_