Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-05-03 18:25:22


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net