
3 May
2006
3 May
'06
10:25 p.m.
John Christopher wrote:
Joel, I was wondering if "at_c" is only a convenience version of "at" or there is a deeper difference? In other words, is std::cout << at_c<0>(v) << std::endl; fully equivalent to std::cout << at<boost::mpl::int_<0> >(v) << std::endl;
Yes, they are fully equivalent. Yes, at_c is only a convenience version of at. at is more suitable for MPL style metaprogramming when the computation of the index is involved.
Thanks for this very nice library
Most welcome! :) Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net