/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/boost/libs/function/test/mixed_cxxstd.cpp
41 строка
745 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// Copyright 2018 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. #include <boost/function.hpp> #include <boost/config.hpp> #if defined(MIXED_CXXSTD_DYN_LINK) # define EXPORT BOOST_SYMBOL_EXPORT #else # define EXPORT #endif EXPORT void call_fn_1( boost::function<void()> const & fn ) { fn(); } EXPORT void call_fn_2( boost::function<void(int)> const & fn ) { fn( 1 ); } EXPORT void call_fn_3( boost::function<void(int, int)> const & fn ) { fn( 1, 2 ); } EXPORT void call_fn_4( boost::function0<void> const & fn ) { fn(); } EXPORT void call_fn_5( boost::function1<void, int> const & fn ) { fn( 1 ); } EXPORT void call_fn_6( boost::function2<void, int, int> const & fn ) { fn( 1, 2 ); }