Types in C++ are:
- Object types:
- scalars
- arithmetic (integral, float)
- pointers: T * for any type T
- enum
- pointer-to-member
- nullptr_t
- arrays
- T[] or T[N] for any complete, non-reference type T
- classes (class Foo or struct Bar)
- Trivial classes
- Aggregates
- POD classes
- (etc. etc.)
- unions
- union Zip
- Reference types
- T &, T && for any object or free-function type T
- Function types
- Free functions: R foo(Arg1, Arg2, ...)
- Member functions: R T::foo(Arg1, Arg2, ...)
- (Member types) [see below]
- void
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.