Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
Move semantics
For a copyable type, when does std::move_if_noexcept return an rvalue reference?
from Move semantics
C++23 (GCC 13.3.0)
advanced
1 min
For a copyable type, when does std::move_if_noexcept return an rvalue reference?
When its move constructor is non-throwing
Whenever std::move was used earlier
Only when its copy constructor is noexcept
Only for standard-library types
Check
Ask AI about this kata
Report an error
previous kata
Why does constructing T from std::move(const_value) commonly call T(const T&) instead of …
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload