Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9270719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:26:22+00:00 2026-06-18T15:26:22+00:00

As far as I understand it fundamental types are Scalar and Arrays are aggregate

  • 0

As far as I understand it fundamental types are Scalar and Arrays are aggregate but what about user defined types? By what criteria would I divide them into the two categories?

struct S { int i; int j };
class C { public: S s1_; S s2_ };
std::vector<int> V;
std::vector<int> *pV = &v;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:26:24+00:00Added an answer on June 18, 2026 at 3:26 pm

    Short version: Types in C++ are:

    • Object types: scalars, arrays, classes, unions

    • Reference types

    • Function types

    • (Member types) [see below]

    • void


    Long version

    • Object types

      • Scalars

        1. arithmetic (integral, float)

        2. pointers: T * for any type T

        3. enum

        4. pointer-to-member

        5. nullptr_t

      • Arrays: T[] or T[N] for any complete, non-reference type T

      • Classes: class Foo or struct Bar

        1. Trivial classes

        2. Aggregates

        3. POD classes

        4. (etc. etc.)

      • Unions: union Zip

    • References 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, ...)

    • void

    Member types work like this. A member type is of the form T::U, but you can’t have objects or variables of member type. You can only have member pointers. A member pointer has type T::* U, and it is a pointer-to-member-object if U is a (free) object type, and a pointer-to-member-function if U is a (free) function type.

    All types are complete except void, unsized arrays and declared-but-not-defined classes and unions. All incomplete types except void can be completed.

    All types can be const/volatile qualified.

    The <type_traits> header provides trait classes to check for each of these type characteristics.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As far as I understand from the documentation the QUdpSocket are async but, still,
So far I can understand HTML.ActionLink and URL.RouteURL but still trying to absorb where
Today I've had a read about wordpress plugins, so far I understand that they
As far as I understand Facebook allowes you (through the API) to post on
As far as I understand, https is http plus SSL/TLS. What do I need
As far as I understand, the onchange event of a text input element is
As far as I understand the serial port so far, transferring data is done
As far as I understand WebRequest.PreAuthenticate is almost always good. If I enable it
As far as I understand the branch-on-sign is the name of some kind of
As far as I understand Objective C / iOS is very dynamic language, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.