Top "Typedef" questions

In C and C++, the typedef keyword allows you to create an alias for a known data type.

Avoiding conflicting declaration errors in typedef c++

Is there a way I can make g++ ignore or work around conflicting typedefs? Background: I'm writing some c++ code …

c++ gcc g++ typedef mysql++
C++ Class forward declaration drawbacks?

I want to use forward declaration of a class in my software, so I can have typedefs and use them …

c++ class typedef forward-declaration
Typedef redefinition error when trying to build XCode project for release

I can build my project in Xcode(4.2) for debugging without issues, but when I want to build it for release (…

xcode typedef redefinition llvm-3.0
C++ static polymorphism (CRTP) and using typedefs from derived classes

I read the Wikipedia article about the curiously recurring template pattern in C++ for doing static (read: compile-time) polymorphism. I …

c++ templates inheritance typedef crtp
Why do type aliases in C++ use 'using' instead of 'typedef' in their syntax?

Clearly, type aliases and templated type aliases are semantically equivalent to typedefs and an extension of typedefs to support template. …

c++ templates c++11 typedef using
C++ typedef a std::pair and then use the typedef to declare a map

Let's say I have this typedef typedef std::pair<std::string, uint32_t> MyType; Then, if I also …

c++ dictionary typedef std-pair
(Re)named std::pair members

Instead of writing town->first I would like to write town->name. Inline named accessors (Renaming first and …

c++ templates stl typedef traits
How to convert typedef enum to NSNumber?

Is each value of a typedef enum treated as an int? E.g., given the following typedef enum: // UIView.h …

enums typedef nsnumber nsinteger nsuinteger
Typedef inside template class doesn't work

I have a problem with the following code: template <typename U> class lamePtr { public: typedef U* ptr; }; template &…

c++ class templates typedef typename
How do you import an enum into a different namespace in C++?

I have an enum in a namespace and I'd like to use it as if it were in a different …

c++ enums namespaces typedef language-lawyer