S
suresh
Namasivayah,
Stroustrup says when indirect array is used for reordering a valarray
the index cannot be repeated twice(page 679). But Nicolai Josuttis in
his book on C++ standard library, page 567, says, index may occur
twice.
g++ version 3.3.5 compiles code with repeated index without any
complaint.
My questions are
1. Can we repeat the index in the index array for reordering a
valarray?
2. Can I get a reordered array which is larger than the original array
by repeating indices. (It works in g++, but I am not sure of
portability)
Thank you,
suresh
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Stroustrup says when indirect array is used for reordering a valarray
the index cannot be repeated twice(page 679). But Nicolai Josuttis in
his book on C++ standard library, page 567, says, index may occur
twice.
g++ version 3.3.5 compiles code with repeated index without any
complaint.
My questions are
1. Can we repeat the index in the index array for reordering a
valarray?
2. Can I get a reordered array which is larger than the original array
by repeating indices. (It works in g++, but I am not sure of
portability)
Thank you,
suresh
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]