bool (*predicate) (const active_cell_iterator, const unsigned int)
= &level_equal_to<active_cell_iterator>;
FilteredIterator<active_cell_iterator>
- begin (std::bind2nd (std::ptr_fun(predicate), 3),
+ begin (std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3),
tria.begin_active (3)),
- end (std::bind2nd (std::ptr_fun(predicate), 3),
+ end (std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3),
tria.end());
Assert (std::distance (begin, end) ==
bool (*predicate) (const active_cell_iterator, const unsigned int)
= &level_equal_to<active_cell_iterator>;
- Assert (std::distance (FI(std::bind2nd (std::ptr_fun(predicate), 3))
+ Assert (std::distance (FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3))
.set_to_next_positive(tria.begin_active()),
- FI(std::bind2nd (std::ptr_fun(predicate), 3), tria.end())) ==
+ FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3), tria.end())) ==
static_cast<signed int>(tria.n_active_cells (3)),
ExcInternalError());
logfile << "Check 4: "
- << (std::distance (FI(std::bind2nd (std::ptr_fun(predicate), 3))
+ << (std::distance (FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3))
.set_to_next_positive(tria.begin_active()),
- FI(std::bind2nd (std::ptr_fun(predicate), 3), tria.end())) ==
+ FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3), tria.end())) ==
static_cast<signed int>(tria.n_active_cells (3))
?
"OK" : "Failed")
bool (*predicate) (const active_cell_iterator, const unsigned int)
= &level_equal_to<active_cell_iterator>;
FilteredIterator<active_cell_iterator>
- begin (std::bind2nd (std::ptr_fun(predicate), 3),
+ begin (std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3),
tria.begin_active (3)),
- end (std::bind2nd (std::ptr_fun(predicate), 3),
+ end (std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3),
tria.end());
Assert (std::distance (begin, end) ==
bool (*predicate) (const active_cell_iterator, const unsigned int)
= &level_equal_to<active_cell_iterator>;
- Assert (std::distance (FI(std::bind2nd (std::ptr_fun(predicate), 3))
+ Assert (std::distance (FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3))
.set_to_next_positive(tria.begin_active()),
- FI(std::bind2nd (std::ptr_fun(predicate), 3), tria.end())) ==
+ FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3), tria.end())) ==
static_cast<signed int>(tria.n_active_cells (3)),
ExcInternalError());
logfile << "Check 4: "
- << (std::distance (FI(std::bind2nd (std::ptr_fun(predicate), 3))
+ << (std::distance (FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3))
.set_to_next_positive(tria.begin_active()),
- FI(std::bind2nd (std::ptr_fun(predicate), 3), tria.end())) ==
+ FI(std_cxx11::bind (std::ptr_fun(predicate), std_cxx11::_1, 3), tria.end())) ==
static_cast<signed int>(tria.n_active_cells (3))
?
"OK" : "Failed")
// check std::transform
std::transform (v1.begin(), v1.end(), v2.begin(),
- std::bind2nd (std::multiplies<double>(),
- 2.0));
+ std::bind (std::multiplies<double>(),
+ std::placeholders::_1,
+ 2.0));
v2 *= 1./2;
deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
// check std::transform
std::transform (v1.begin(), v1.end(), v2.begin(),
- std::bind2nd (std::multiplies<std::complex<double> >(),
- 2.0));
+ std::bind (std::multiplies<std::complex<double> >(),
+ std_cxx11::_1,
+ 2.0));
v2 *= std::complex<double>(1./2.);
deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
// check std::transform
std::transform (v1.begin(), v1.end(), v2.begin(),
- std::bind2nd (std::multiplies<double>(),
- 2.0));
+ std_cxx11::bind (std::multiplies<double>(),
+ std_cxx11::_1
+ 2.0));
v2 *= 1./2.;
deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
// check std::transform
std::transform (v1.begin(), v1.end(), v2.begin(),
- std::bind2nd (std::multiplies<double>(),
- 2.0));
+ std::bind (std::multiplies<double>(),
+ std_cxx11::_1,
+ 2.0));
v2 *= 1./2.;
deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;