mirror of
https://github.com/zeldaret/tp
synced 2026-06-23 09:20:01 -04:00
JAUSectionHeap, Z2SoundInfo, others (#1925)
* Z2SoundInfo * JAUSectionHeap * Z2EnvSeMgr * Z2AudioMgr * m_Do_audio * d_a_alink
This commit is contained in:
@@ -10,6 +10,39 @@ ForwardIterator upper_bound(ForwardIterator first, ForwardIterator last, const T
|
||||
|
||||
template<class InputIt, class UnaryPredicate>
|
||||
InputIt find_if(InputIt first, InputIt last, UnaryPredicate p);
|
||||
|
||||
/*
|
||||
template<class OutputIt, class Size, int A2>
|
||||
struct __fill_n {
|
||||
OutputIt fill_n(OutputIt first, Size count, const unsigned long& value);
|
||||
};
|
||||
|
||||
template<>
|
||||
unsigned long* __fill_n<unsigned long, long, 0>::fill_n(unsigned long* first, long count, const unsigned long& value) {
|
||||
for (; count > 0; count--) {
|
||||
*first++ = value;
|
||||
}
|
||||
return first;
|
||||
}
|
||||
|
||||
template<class OutputIt, class Size, class T>
|
||||
OutputIt fill_n(OutputIt first, Size count, const T& value) {
|
||||
return __fill_n::fill_n(first, count, value);
|
||||
}
|
||||
|
||||
|
||||
template<class ForwardIt, class T>
|
||||
void __fill(ForwardIt first, ForwardIt last, const T& value, std::random_access_iterator_tag param_3) {
|
||||
fill_n(first, last - first, value);
|
||||
}
|
||||
*/
|
||||
|
||||
template<class ForwardIt, class T>
|
||||
void fill(ForwardIt first, ForwardIt last, const T& value) {
|
||||
for (; first != last; ++first){
|
||||
*first = value;
|
||||
}
|
||||
}
|
||||
} // namespace std
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user