#####  [ cppreference.com ](/)

[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Flanguage%2Fnested+types
"You are encouraged to log in; however, it is not mandatory \[o\]")

#####  Namespaces

  * [ Page ](/w/cpp/language/nested_types "View the content page \[c\]")
  * [ Discussion ](/w/Talk:cpp/language/nested_types "Discussion about the content page \[t\]")

#####  Variants

#####  Views

  * [ View ](/w/cpp/language/nested_types)
  * [ Edit ](/mwiki/index.php?title=cpp/language/nested_types&action=edit "You can edit this page. Please use the preview button before saving \[e\]")
  * [ History ](/mwiki/index.php?title=cpp/language/nested_types&action=history "Past revisions of this page \[h\]")

#####  Actions

#  Nested classes

From cppreference.com

< [ cpp ](/w/cpp "cpp") ‎ | [ language ](/w/cpp/language "cpp/language")

[ C++ ](/w/cpp "cpp")

[ Compiler support ](/w/cpp/compiler_support "cpp/compiler support")  
---  
[ Freestanding and hosted ](/w/cpp/freestanding "cpp/freestanding")  
[ Language ](/w/cpp/language "cpp/language")  
[ Standard library ](/w/cpp/standard_library "cpp/standard library")  
[ Standard library headers ](/w/cpp/header "cpp/header")  
[ Named requirements ](/w/cpp/named_req "cpp/named req")  
[ Feature test macros ](/w/cpp/feature_test "cpp/feature test") (C++20)  
[ Language support library ](/w/cpp/utility#Language_support "cpp/utility")  
[ Concepts library ](/w/cpp/concepts "cpp/concepts") (C++20)  
[ Metaprogramming library ](/w/cpp/meta "cpp/meta") (C++11)  
[ Diagnostics library ](/w/cpp/error "cpp/error")  
[ General utilities library ](/w/cpp/utility "cpp/utility")  
[ Strings library ](/w/cpp/string "cpp/string")  
[ Containers library ](/w/cpp/container "cpp/container")  
[ Iterators library ](/w/cpp/iterator "cpp/iterator")  
[ Ranges library ](/w/cpp/ranges "cpp/ranges") (C++20)  
[ Algorithms library ](/w/cpp/algorithm "cpp/algorithm")  
[ Numerics library ](/w/cpp/numeric "cpp/numeric")  
[ Localizations library ](/w/cpp/locale "cpp/locale")  
[ Input/output library ](/w/cpp/io "cpp/io")  
[ Filesystem library ](/w/cpp/filesystem "cpp/filesystem") (C++17)  
[ Regular expressions library ](/w/cpp/regex "cpp/regex") (C++11)  
[ Concurrency support library ](/w/cpp/thread "cpp/thread") (C++11)  
[ Technical specifications ](/w/cpp/experimental "cpp/experimental")  
[ Symbols index ](/w/cpp/symbol_index "cpp/symbol index")  
[ External libraries ](/w/cpp/links/libs "cpp/links/libs")  
  
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/navbar_content&action=edit)

[ C++ language ](/w/cpp/language "cpp/language")

General topics  
---  
|  [ Preprocessor ](/w/cpp/preprocessor "cpp/preprocessor")  
---  
[ Comments ](/w/cpp/comment "cpp/comment")  
  
|  [ Keywords ](/w/cpp/keyword "cpp/keyword")  
---  
[ Escape sequences ](/w/cpp/language/escape "cpp/language/escape")  
  
[ Flow control ](/w/cpp/language/statements "cpp/language/statements")  
Conditional execution statements  
|  [ ` if ` ](/w/cpp/language/if "cpp/language/if")  
---  
  
|  [ ` switch ` ](/w/cpp/language/switch "cpp/language/switch")  
---  
  
Iteration statements (loops)  
|  [ ` for ` ](/w/cpp/language/for "cpp/language/for")  
---  
[ range- ` for ` ](/w/cpp/language/range-for "cpp/language/range-for") (C++11)  
  
|  [ ` while ` ](/w/cpp/language/while "cpp/language/while")  
---  
[ ` do-while ` ](/w/cpp/language/do "cpp/language/do")  
  
Jump statements  
|  [ ` continue ` ](/w/cpp/language/continue "cpp/language/continue") \- [ `
break ` ](/w/cpp/language/break "cpp/language/break")  
---  
  
|  [ ` goto ` ](/w/cpp/language/goto "cpp/language/goto") \- [ ` return `
](/w/cpp/language/return "cpp/language/return")  
---  
  
[ Functions ](/w/cpp/language/functions "cpp/language/functions")  
[ Function declaration ](/w/cpp/language/function "cpp/language/function")  
[ Lambda function expression ](/w/cpp/language/lambda "cpp/language/lambda")  
[ ` inline ` specifi