Explore tens of thousands of sets crafted by our community.
C++ Keywords
20
Flashcards
0/20
explicit
Specifies that a constructor or conversion operator doesn't allow implicit conversions or copy-initialization.
this
A pointer to the current instance of the class.
extern
Indicates that a variable or function has external linkage, defined in another file.
namespace
Defines a scope that allows organizing code into logical groups and prevents name collisions.
sizeof
Yields the size in bytes of the type or object representation.
auto
Declares a variable with automatic type deduction.
inline
Suggests that a function be inlined, replacing the function call with the function code itself.
reinterpret_cast
Performs unsafe type conversion between types that may not be related.
typedef
Creates an alias for a type.
virtual
Specifies that a member function is to be dynamic and can be overridden in derived classes.
delete
Indicates that a function should not be defined and prevents default generation by the compiler, or it's used to deallocate memory.
mutable
Allows a member of an object to be modified even if the object is const.
alignas
Specifies the alignment requirement of a type or object.
const
Qualifies that the type can't be changed after initialization.
register
Hints to the compiler that the variable should be stored in a CPU register for faster access.
template
Defines a blueprint for generating type-safe functions or classes.
volatile
Indicates that a variable's value may be modified by something outside the control of the code section in which it appears.
enum
Defines an enumeration, a distinct type that consists of a set of named integral constants.
static
Specifies that the lifetime of the variable or function is the entire run of the program.
throw
Used to signal the occurrence of an anomalous situation (exception).
© Hypatia.Tech. 2024 All rights reserved.