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