Lines Matching refs:T
107 template <typename T,
109 size_t kBitWidth = BitStructSizeOf<T>(),
112 static_assert(std::is_standard_layout<T>::value, "T must be standard layout");
114 operator T() const { in T() function
120 typename = std::enable_if_t<std::is_same<T, StorageType>::value, _>>
125 BitStructField& operator=(T value) {
135 return *this = static_cast<T>(other);
139 Assign(*this, static_cast<T>(other)); in BitStructField()
147 T2& Assign(T2& what, T value) { in Assign()
156 T Get() const { in Get()
162 void Set(T value) { in Set()
191 T value_;
205 template <typename T, size_t kBitOffset, size_t kBitWidth>
206 struct BitStructNumber : public BitStructField<T, kBitOffset, kBitWidth, /*StorageType*/T> {
207 using StorageType = T;
209 BitStructNumber& operator=(T value) {
213 /*implicit*/ operator T() const { in T() function
240 using BaseType = BitStructField<T, kBitOffset, kBitWidth, /*StorageType*/T>;
299 template <typename T>
301 return T::BitStructSizeOf(); in BitStructSizeOf()