llvm.org GIT mirror llvm / c00c9f3
Expose template parameters of endian specific types as class members Summary: This allows generic code to query these parameters, and is a common practice in a lot of other template classes. Reviewers: zturner, Bigcheese Subscribers: kristina, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D58969 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355504 91177308-0d34-0410-b5e6-96231b3b80d8 Pavel Labath 1 year, 2 months ago
1 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
202202
203203 namespace detail {
204204
205 template
206 endianness endian,
207 std::size_t alignment>
205 template
206 endianness Endian,
207 std::size_t Alignment>
208208 struct packed_endian_specific_integral {
209 using value_type = ValueType;
210 static constexpr endianness endian = Endian;
211 static constexpr std::size_t alignment = Alignment;
212
209213 packed_endian_specific_integral() = default;
210214
211215 explicit packed_endian_specific_integral(value_type val) { *this = val; }