Keywords (anahtar kelimeler), C++’ın kendi kullanımı için ayırdığı kelimelerdir. Bu kelimeleri bizler yeniden tanımlayamayız. Derleyici için hepsinin belli bir anlamı var. Bu kelimeleri programımızda kullanırken hangi işlev için yapılmışsa o işlem için kulanacağız.

Yaklaşık 95 keyword bulunmakta. Bunları oturup ezberlemeyeceğiz. Bazılarını belki hiç kullanmayacağız. Yeri geldikçe yavaş yavaş öğreneceğiz.

A – CD – PR – Z
alignas (C++11)
alignof (C++11)
and
and_eq
asm
atomic_cancel (TM TS)
atomic_commit (TM TS)
atomic_noexcept (TM TS)
auto (1)
bitand
bitor
bool
break
case
catch
char
char8_t (C++20)
char16_t (C++11)
char32_t (C++11)
class (1)
compl
concept (C++20)
const
consteval (C++20)
constexpr (C++11)
constinit (C++20)
const_cast
continue
co_await (C++20)
co_return (C++20)
co_yield (C++20)
decltype (C++11)
default (1)
delete (1)
do
double
dynamic_cast
else
enum
explicit
export (1) (3)
extern (1)
false
float
for
friend
goto
if
inline (1)
int
long
mutable (1)
namespace
new
noexcept (C++11)
not
not_eq
nullptr (C++11)
operator
or
or_eq
private
protected
public
reflexpr (reflection TS)
register (2)
reinterpret_cast
requires (C++20)
return
short
signed
sizeof (1)
static
static_assert (C++11)
static_cast
struct (1)
switch
synchronized (TM TS)
template
this (4)
thread_local (C++11)
throw
true
try
typedef
typeid
typename
union
unsigned
using (1)
virtual
void
volatile
wchar_t
while
xor
xor_eq
https://en.cppreference.com/w/cpp/keyword

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *