You can do forward typedef. But to do
typedef A B;
you must first forward declare A
:
class A;
typedef A B;
More Related Contents:
- When can I use a forward declaration?
- Is it a good idea to typedef pointers?
- What are forward declarations in C++?
- Typedef function pointer?
- C++ template typedef
- Forward declaration of nested types/classes in C++
- How do I forward declare an inner class? [duplicate]
- Should one use forward declarations instead of includes wherever possible?
- Forward declaration with unique_ptr? [duplicate]
- Destructors of builtin types (int, char etc..)
- When should I use typedef in C++?
- Repeated typedefs – invalid in C but valid in C++?
- C++ typedef interpretation of const pointers
- typedef changes meaning
- error: member access into incomplete type : forward declaration of
- In C++, is it possible to forward declare a class as inheriting from another class?
- Explanation of function pointers
- If I do a `typedef` in C or C++, when should I add `_t` at the end of typedef’ed type? [duplicate]
- Why, really, deleting an incomplete type is undefined behaviour?
- What is forward declaration in c++? [duplicate]
- C++ class forward declaration
- Why do you use typedef when declaring an enum in C++?
- Why does a C++ friend class need a forward declaration only in other namespaces?
- Is the typedef-name optional in a typedef declaration?
- What is a C++11 extension [-Wc++11-extensions]
- forward declaration with vector of class type – pointer to incomplete class type not allowed
- C++ Class wrapper around fundamental types
- How to typedef a template class? [duplicate]
- templated typedef?
- How do I typedef a function pointer with the C++11 using syntax?