Boost logo

Boost Users :

Subject: Re: [Boost-users] Type arithmetic library?
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2010-06-12 12:32:26


El 12/06/2010 10:19 a.m., Peng Yu escribió:
> Hello,
>
> But I'm interested in finding the nested type. For example, if I have
> a template S<T1, T2>. I'd like to deduce that it has two template
> arguments, I'd like to access its template argument by index (say, 0
> and 1 for this case).
>
> I did a preliminary search, but found no such facilities. I may
> overlook something. Would you please let me know if there is such a
> facility in boost?
>

Check Template Traits, at Boost Vault
http://www.boostpro.com/vault/index.php?action=downloadfile&filename=template_traits.zip

However, note it does not support indexed access to template arguments,
since it was modeled after TypeTraits function_traits.

Agustín K-ballo Bergé.-
http://talesofcpp.blogspot.com


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