일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 아두이노 컴파일러
- Visual Micro
- 라인트레이서
- vector
- 자료구조
- 아두이노
- list
- 컴퓨터 그래픽스
- 수광 소자
- 운영체제
- stl
- directx
- map
- C언어
- Algorithm
- html
- 통계학
- priority_queue
- Array
- 아두이노 소스
- Stack
- 시스템프로그래밍
- Deque
- Arduino
- queue
- WinAPI
- set
- LineTracer
- arduino compiler
- c++
- Today
- Total
목록STL - Algorithm/Algorithm - Partitions (5)
Kim's Programming
원형) 123template ForwardIterator partition_point (ForwardIterator first, ForwardIterator last, UnaryPredicate pred);cs
원형) 123456template pair partition_copy (InputIterator first, InputIterator last, OutputIterator1 result_true, OutputIterator2 result_false, UnaryPredicate pred);Colored by Color Scriptercs 의미) [Iterator first, Iterator last)사이에 있는 데이터들 중에 pred 함수로 true를 리턴하는 값은 Iterator result_true가 가리키는 위치부터 복사하고 false를 리턴하는 값은 Iterator result_false가 가리키는 위치부터 복사합니다. 소스) 1234567891011121314151617181920212223242..
원형) 12345//기본형template BidirectionalIterator stable_partition (BidirectionalIterator first, BidirectionalIterator last, UnaryPredicate pred);cs 의미) 리턴[Iterator first, Iterator last)사이에 있는 데이터들을 pred함수에 의해 true가 리턴되는 값과 false가 리턴되는 값으로 나누어 분할합니다. std::partition()과는 다르게 원소들의 상대적 순서는 보존됩니다. 소스) 12345678910111213141516171819202122232425262728293031323334#include#include#include void Print(const std:..
원형) 123//기본형template bool is_partitioned (InputIterator first, InputIterator last, UnaryPredicate pred);cs 의미) [Iterator first, Iterator last)사이에 있는 데이터들이 pred함수에 의해서 true값을 리턴하는 값, false값을 리턴하는 값 으로 모두 나뉘어 있다면 true를 리턴합니다. 소스) 12345678910111213141516171819202122232425262728293031323334353637383940414243444546#include#include#include void Print(const std::vector& target){ for (std::vector::const..
원형) 1234//기본형template ForwardIterator partition (ForwardIterator first, ForwardIterator last, UnaryPredicate pred);cs 의미) 리턴된 [Iterator first, Iterator last) 사이에 있는 데이터들을 pred 함수를 이용하여 true를 리턴한 값과 false를 리턴한 값으로 재정렬 합니다. 소스) 12345678910111213141516171819202122232425262728293031323334#include#include#include void Print(const std::vector& target){ for (std::vector::const_iterator iterPos = target..