Recently I have been working on a code base which uses MFC and objects such as CArray<T, U>.
Some parts of new code which has been written make use of the STL and <algorithm> library.
For example
CArray<int int> carray;
carray // do stuff
std::vector<int> stlvector(begin(carray), end(carray));
stlvector.dostuff() // do stuff
I recently asked a question about creating iterators for a class such as CArray, which I do not have access to.
I now have some further questions about this. Here is my first question:
- Should the
beginandendfunctions be inside thestdnamespace?
I will ask the other questions separately and provide links to them shortly, replacing this line of text when those links are available.
CArray<int int>withstd::vector<int>alltogether.