Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- SHA1
- web
- c++
- SHA512
- stringprintf
- sprintf
- Reflect
- type_traits
- go
- Chrono
- template
- design pattern
- haskell
- Functional
- CustomTab
- traits
- ChromeTab
- program
- RAII
- async
- WebView
- Scala
- AES
- Observer
- Android
- ranges
- kotlin
- coroutines
- Clojure
- sha256
Archives
- Today
- Total
프로그래밍 검색 블로그
C++ ranges action::join 본문
복사
1 2 3 | auto flatCopy = v | ranges::copy | action::join; cout << view::all(flatMove) << endl; | cs |
1 2 3 | auto flatMove = v | ranges::move | action::join; cout << view::all(flatMove) << endl; | cs |
문자열도 가능
1 2 3 4 5 | vector<std::string> strs = {"show","me","the","money"}; std::string flatCopy = strs | ranges::copy | action::join; cout << view::all(flatCopy) << endl; | cs |
'C++ ranges' 카테고리의 다른 글
C++ ranges view::zip (0) | 2017.10.16 |
---|---|
C++ ranges accumulate (0) | 2017.10.15 |
C++ ranges action::unique (0) | 2017.10.15 |
C++ ranges action::sort (0) | 2017.10.15 |
C++ ranges action::take (0) | 2017.10.10 |
Comments