/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/boost/libs/bind/test/arg_copy_test.cpp
34 строки
555 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// // arg_copy_test.cpp - copying a custom placeholder _1 to arg<1> // // Copyright 2016 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #include <boost/is_placeholder.hpp> #include <boost/bind/arg.hpp> // template<int I> struct ph { }; namespace boost { template<int I> struct is_placeholder< ::ph<I> > { enum _vt { value = I }; }; } // namespace boost int main() { boost::arg<1> a1 = ph<1>(); (void)a1; }