Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- template <typename T>
- bool trueer(const T& el) { return true; }
- template <typename T>
- bool falseer(const T& el) { return false; }
- template <typename T>
- int copy_if(T* srcB, T* srcE, T* destB, T* destE, bool(*pred)(const T& el))
- {
- }
- int main()
- {
- const int arrSize{ 10 };
- int arr[arrSize]{ 1,2,3,4,5,6,7,8,9,10 };
- int* arrBegin{ arr };
- int* arrEnd{ arr + arrSize };
- const int arr1Size{ 10 };
- int arr1[arr1Size]{};
- int* arr1Begin{ arr1 };
- int* arr1End{ arr1 + arr1Size };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement