Ariles
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Namespaces | Macros | Functions
misc.h File Reference

Detailed Description

Various one-liners.

Author
Alexander Sherikov

Definition in file misc.h.

Go to the source code of this file.

Namespaces

 cpput
 

Macros

#define CPPUT_UNUSED_ARG(parameter)   (void)parameter;
 
#define CPPUT_MACRO_SUBSTITUTE(macro)   macro
 
#define CPPUT_DISABLE_CLASS_COPY(Class)
 

Functions

template<typename T >
void cpput::ignoreResult (const T &&)
 

Macro Definition Documentation

◆ CPPUT_DISABLE_CLASS_COPY

#define CPPUT_DISABLE_CLASS_COPY (   Class)
Value:
public: \
Class(const Class &) = delete; \
Class &operator=(const Class &) = delete; \
Class(Class &&) = delete; \
Class &operator=(Class &&) = delete;

Definition at line 23 of file misc.h.

◆ CPPUT_MACRO_SUBSTITUTE

#define CPPUT_MACRO_SUBSTITUTE (   macro)    macro

Definition at line 21 of file misc.h.

◆ CPPUT_UNUSED_ARG

#define CPPUT_UNUSED_ARG (   parameter)    (void)parameter;

Sometimes it is not possible to omit name of an unused parameter, in such cases this macro can be used to suppress compiler warnings about unused parameters.

Definition at line 19 of file misc.h.