forked from boostorg/mp11
Rename mp_for_index to mp_with_index
This commit is contained in:
1 parent
7f9f4c31e2
commit
cde9259b1a
5 files changed
+34
-34
No files matched your search
+2
-2
@@ -71,8 +71,8 @@ run mp_replace_at_c.cpp : : : $(REQ) ;
|
||||
run mp_for_each.cpp : : : $(REQ) ;
|
||||
run mp_insert.cpp : : : $(REQ) ;
|
||||
run mp_erase.cpp : : : $(REQ) ;
|
||||
run mp_for_index.cpp : : : $(REQ) ;
|
||||
run mp_for_index_cx.cpp : : : $(REQ) ;
|
||||
run mp_with_index.cpp : : : $(REQ) ;
|
||||
run mp_with_index_cx.cpp : : : $(REQ) ;
|
||||
|
||||
# integral
|
||||
run integral.cpp : : : $(REQ) ;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
using boost::mp11::mp_size_t;
|
||||
using boost::mp11::mp_for_each;
|
||||
using boost::mp11::mp_for_index;
|
||||
using boost::mp11::mp_with_index;
|
||||
using boost::mp11::mp_iota_c;
|
||||
|
||||
struct F
|
||||
@@ -41,8 +41,8 @@ struct G
|
||||
{
|
||||
for( std::size_t i = 0; i < N; ++i )
|
||||
{
|
||||
mp_for_index<N>( i, F(i) );
|
||||
mp_for_index<mp_size_t<N>>( i, F(i) );
|
||||
mp_with_index<N>( i, F(i) );
|
||||
mp_with_index<mp_size_t<N>>( i, F(i) );
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -20,7 +20,7 @@ int main() {}
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
using boost::mp11::mp_size_t;
|
||||
using boost::mp11::mp_for_index;
|
||||
using boost::mp11::mp_with_index;
|
||||
|
||||
struct F
|
||||
{
|
||||
@@ -34,7 +34,7 @@ struct F
|
||||
|
||||
int main()
|
||||
{
|
||||
constexpr std::size_t i = mp_for_index<64>( 57, F{} );
|
||||
constexpr std::size_t i = mp_with_index<64>( 57, F{} );
|
||||
STATIC_ASSERT( i == 57 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user