endian: add explicit 'native' query for endian::value

This commit is contained in:
Danny Robson 2019-01-18 17:17:36 +11:00
parent 26841db5e0
commit def21dbd3f

View File

@ -214,6 +214,8 @@ namespace cruft {
return convert<StorageV,scheme::native> (raw);
}
ValueT native (void) const { return *this; }
decltype(auto) operator+ () const { return +this->operator ValueT (); }
ValueT operator<< (size_t s) const { return convert<StorageV,scheme::native> (raw) << s; }