[C++] Equivalent of Pascal set?

From: Gerrit (no_at_sp.am)
Date: 02/24/04


Date: Tue, 24 Feb 2004 16:14:16 GMT

In Pascal you can write,
   if A in Numberset begin ... etc.
where Numberset would be, for example, the set of integers [2,6,8], or a
similar set of any ordered type, with a maximum of 255 elements.
What is the nearest equivalent in C++?

Gerrit



Relevant Pages

  • Re: [C++] Equivalent of Pascal set?
    ... Gerrit wrote: ... > if A in Numberset begin ... ... > similar set of any ordered type, with a maximum of 255 elements. ... see C++-FAQ Lite: http://parashift.com/c++-faq-lite/ first! ...
    (alt.comp.lang.learn.c-cpp)
  • Re: [C++] Equivalent of Pascal set?
    ... Gerrit wrote: ... > if A in Numberset begin ... ... > similar set of any ordered type, with a maximum of 255 elements. ... On the other hand the map comes with an overhead you are ...
    (alt.comp.lang.learn.c-cpp)