public继承普通类,子类中可以直接用父类的protected和public成员
class base
{
protected:
int a;
typedef int value_type;
};
class child : public base
{
public:
void set(int o) { a = o; ...
栈:alignas specifier (since C++11)
alignas specifier (since C++11) - cppreference.com
Specifies the alignment requirement of a type or an object.
Syntaxalignas( expression )
\1) expression must ...
new expression - cppreference.com
Creates and initializes objects with dynamic storage duration, that is, objects whose lifetime is not necessarily limited by the scope in which they were created....
宏定义函数https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc.pdf搜索__VA_ARGS__
#define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
Here ... is a variable argument. In the invocation of such a mac...