일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- priority_queue
- 통계학
- LineTracer
- 운영체제
- stl
- Algorithm
- c++
- Array
- 아두이노 컴파일러
- 컴퓨터 그래픽스
- directx
- C언어
- Arduino
- Stack
- map
- set
- queue
- arduino compiler
- Visual Micro
- 자료구조
- 시스템프로그래밍
- 수광 소자
- 아두이노 소스
- html
- Deque
- 아두이노
- vector
- list
- WinAPI
- 라인트레이서
- Today
- Total
목록Algorithm (83)
Kim's Programming
원형) 12345//기본형template BidirectionalIterator2 copy_backward (BidirectionalIterator1 first, BidirectionalIterator1 last, BidirectionalIterator2 result);cs 의미) [Iterator first, Iterator last) 사이에 있는 데이터들을 Iterator result에 뒤에서부터 역순으로 복사합니다. 소스) 12345678910111213141516171819202122232425#include#include#include void Print(const std::vector& target){ for (std::vector::const_iterator iterPos = target.b..
원형) 123//기본형template OutputIterator copy_n (InputIterator first, Size n, OutputIterator result);cs 의미) Iterator first부터 n개의 원소를 Iterator result위치 부터 복사합니다. 소스) 1234567891011121314151617181920#include#include#include void Print(const std::vector& target){ for (std::vector::const_iterator iterPos = target.begin(); iterPos != target.cend(); iterPos++) std::cout
원형) 123//기본형template OutputIterator copy (InputIterator first, InputIterator last, OutputIterator result);cs 의미) [Iterator first, Iterator last)사이에 있는 데이터들을 Iterator result가 가리키는 위치부터 복사를 합니다. 소스) 123456789101112131415161718192021#include#include#include void Print(const std::vector& target){ for (std::vector::const_iterator iterPos = target.begin(); iterPos != target.cend(); iterPos++) std::cout
원형) 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..