DB
Size: a a a
DB
DF
v
AF
#include <type_traits>
template <class T>
concept Int = std::is_same_v<T, int>;
struct A {
template<Int T>
int f(T);
};
template<Int T>
int A::f(T) {
return 42;
}
int main() {
return A{}.f(0);
}
AF
AF
struct packet_t {Далее пишем:
uint16_t one : 4;
uint16_t two : 6;
uint16_t three : 6;
uint16_t four : 16;
} __attribute__((packed));
AF
AF
AT
v
AF
DF