Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 5788

C++

Rvalue reference declarator (`&&`)

The `&&` declarator forms an rvalue reference type. Overload resolution still depends on expression category: the name of a variable declared `T&&` is an lvalue when passed as an argument.

Advanced · ISO C++23; implementation support may vary
C++

`std` — the C++ standard library namespace

Learn how to read names such as `std::cout` and `std::chrono::seconds`, make declarations available, and shorten names safely. Curriculum examples show what the namespace controls and what comes from each API’s own contract.

Intermediate · ISO C++23; implementation support may vary
C++

Appending to a string: std::basic_string::append

Choose the `append` overload that matches your source: a whole string, a slice, or a buffer with a known length. Add separators explicitly and preserve embedded nulls.

Advanced · ISO C++23; implementation support may vary
C++

std::basic_string constructor: repeat a character

Build a string containing exactly `count` copies of `ch`. Use parentheses to select the fill overload rather than the initializer-list overload.

Advanced · ISO C++23; implementation support may vary
C++

std::basic_string::push_back — append one code unit

Append one code unit to a string, directly or through an output iterator. Learn what growth can invalidate and how to preserve embedded nulls in bounded data.

Advanced · ISO C++23; implementation support may vary
C++

std::basic_string::substr — owning substring

Extract part of a string into a new owning string. Learn how the length is capped, when the start position throws, and what the C++23 rvalue overload changes.

Advanced · ISO C++23; implementation support may vary
C++

Joining paths with `/` in `std::filesystem`

The path slash operator returns a new path without changing either operand. The right operand’s syntax determines whether it appends to or replaces some or all of the left path.

Advanced · ISO C++23; implementation support may vary
C++

std::ios::boolalpha — read and write Boolean names

Set the `std::ios::boolalpha` flag with `setf` to read and write `bool` values using the stream’s locale-specific names rather than numeric representations.

Advanced · ISO C++23; implementation support may vary
C++

std::nullopt — explicit absence of a value

Use `std::nullopt` to return or set an empty `std::optional` without confusing a missing result with a valid value such as zero.

Advanced · ISO C++23; implementation support may vary
C++

Checking whether float conforms to IEEE 754

Check at compile time whether the implementation’s `float` conforms to IEEE 754, separately from any storage-size or binary-format requirements.

Advanced · ISO C++23; implementation support may vary