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
- program
- c++
- haskell
- Observer
- RAII
- ranges
- Chrono
- sprintf
- design pattern
- SHA512
- Clojure
- async
- SHA1
- coroutines
- stringprintf
- kotlin
- Scala
- WebView
- template
- CustomTab
- ChromeTab
- web
- go
- Reflect
- sha256
- type_traits
- Functional
- AES
- Android
- traits
Archives
- Today
- Total
프로그래밍 검색 블로그
c++ ranges view:delimit 본문
인자로 받은것이 아닐때까지 필터링한다
1 2 3 | vector<int> v = {7,6,4,1,2,3,4,5}; auto a = v | view::delimit(3); cout << view::all(a) <<endl; | cs |
출력: [7,6,4,1,2]
1 2 3 | vector<int> v = {7,6,4,1,2,3,4,5}; auto a = v | view::delimit(3); cout << view::all(a) <<endl; | cs |
출력: [3,6,4,1,2,3,4,5]
1 2 3 | vector<int> v = {3,6,4,1,2,3,4,5}; auto a = v | view::delimit(3); cout << view::all(a) <<endl; | cs |
출력: []
'C++ ranges' 카테고리의 다른 글
c++ ranges view:sliding (0) | 2017.10.16 |
---|---|
c++ ranges view::zip_with (0) | 2017.10.16 |
C++ ranges view::zip (0) | 2017.10.16 |
C++ ranges accumulate (0) | 2017.10.15 |
C++ ranges action::join (0) | 2017.10.15 |
Comments