Chad has given a pretty good dictionary definition. Forward declarations are often used in C++ to deal with circular relationships. For example:
class B; // Forward declaration
class A
{
B* b;
};
class B
{
A* a;
};
More Related Contents:
- When can I use a forward declaration?
- What are forward declarations in C++?
- Forward declaration of nested types/classes in C++
- How do I forward declare an inner class? [duplicate]
- Forward declaration of a typedef in C++
- Should one use forward declarations instead of includes wherever possible?
- Forward declaration with unique_ptr? [duplicate]
- error: member access into incomplete type : forward declaration of
- In C++, is it possible to forward declare a class as inheriting from another class?
- What is the header?
- Why, really, deleting an incomplete type is undefined behaviour?
- C++ class forward declaration
- Why does a C++ friend class need a forward declaration only in other namespaces?
- forward declaration with vector of class type – pointer to incomplete class type not allowed
- Why must an enumeration’s size be provided when it is forward declared?
- What is the purpose of forward declaration?
- Forward Declaration of variables/classes in std namespace
- Why I am getting Time Limit Exceeded? [closed]
- What is a vector of vector of point? [closed]
- Why does this C++ snippet compile (non-void function does not return a value) [duplicate]
- C++ Detect when user presses arrow key
- Why does auto x{3} deduce an initializer_list?
- How do I initialize a member array with an initializer_list?
- Template tuple – calling a function on each element
- Creating a transparent window in C++ Win32
- Accessing Environment Variables In C++
- Why does this delay-loop start to run faster after several iterations with no sleep?
- How to detect IP address change programmatically in Linux?
- How to store array in one column in Sqlite3?
- Does ‘auto’ type assignments of a pointer in c++11 require ‘*’?