/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/boost/libs/function/test/quick.cpp
21 строка
457 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// Copyright 2019 Peter Dimov // Use, modification and distribution is subject to 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/function.hpp> #include <boost/core/lightweight_test.hpp> static int f( int x ) { return x + 1; } int main() { boost::function<int(int)> fn( f ); BOOST_TEST_EQ( fn( 5 ), 6 ); return boost::report_errors(); }