|
Boost Users : |
Subject: [Boost-users] [multi-index] multi-index type trait
From: Elizabeta (elizabeta.petreska_at_[hidden])
Date: 2015-08-17 16:10:32
Hi
how to test if the first index of boost::multi-index is key based or
sequence based at compile time. I need to write something like this :
template<class T,class M>
void f(T& object,typename
boost::enable_if<first_index_is_sequence<T>>::type* dummy = 0)
{
M element;
object.push_back(element);
}
template<class T,class M>
void f(T& object,typename
boost::enable_if<first_index_is_key<T>>::type* dummy = 0)
{
M element;
object.insert(element);
}
-- View this message in context: http://boost.2283326.n4.nabble.com/multi-index-multi-index-type-trait-tp4678973.html Sent from the Boost - Users mailing list archive at Nabble.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