Re: Map

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



you could probably derive a class from it that blocks changing the contents
if some flag is set, which you could set after initilazing it

"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:lrbje290rgu2uet1b6tjgda8f5e817j2mh@xxxxxxxxxx
You can't. The problem with 'const' is that it is a little too extreme
for a lot of data
objects. This is a case where, in spite of the fact it is "logically"
const, you can't
declare that syntactically, because, as you point out, you won't be able
to populate it.
joe

On Mon, 21 Aug 2006 01:59:01 -0700, Alamelu
<Alamelu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

can we define a const map , which will take both key and value also to be
constants?

something like this...........
const std::map< const unsigned char,const unsigned char> sample_map;

In that case how to we populate it????????
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm


.



Relevant Pages

  • Re: Images in Tables/Listboxes
    ... list box has one or more of the three possible certifications. ... column 1 might be flag someone as having CPR training. ... Store a small gif of each color in a table, ... query that populate the list box, if the given flag is false populate ...
    (comp.databases.ms-access)
  • Re: Images in Tables/Listboxes
    ... list box has one or more of the three possible certifications. ... column 1 might be flag someone as having CPR training. ... Store a small gif of each color in a table, ... query that populate the list box, if the given flag is false populate ...
    (comp.databases.ms-access)
  • Images in Tables/Listboxes
    ... list box has one or more of the three possible certifications. ... column 1 might be flag someone as having CPR training. ... Store a small gif of each color in a table, ... query that populate the list box, if the given flag is false populate ...
    (comp.databases.ms-access)