/
auroraos
/
mirror_range-v3
Обзор
Документация
Войти
/
auroraos
/
mirror_range-v3
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
master
example/hello.cpp
28 строк
587 B
Jeff Garland
second set of examples with is_sorted, find, for_each - try 2 (#751)
27 мар 2018, 18:41
27 мар 2018, 18:41
30ac665
Код
Авторство
О чём код?
// Range v3 library // // Copyright Jeff Garland 2017 // // 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) // // Project home: https://github.com/ericniebler/range-v3 // ///[hello] #include <iostream> #include <range/v3/all.hpp> // get everything #include <string> using std::cout; int main() { std::string s{"hello"}; // output: h e l l o ranges::for_each(s, [](char c) { cout << c << ' '; }); cout << '\n'; } ///[hello]