xref: /freebsd/contrib/llvm-project/libcxx/src/algorithm.cpp (revision 0bf688786f7d5508b43b50c62f50f022e33b1352)
1  //===----------------------------------------------------------------------===//
2  //
3  // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4  // See https://llvm.org/LICENSE.txt for license information.
5  // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6  //
7  //===----------------------------------------------------------------------===//
8  
9  #include "algorithm"
10  
11  _LIBCPP_BEGIN_NAMESPACE_STD
12  
13  template void __sort<__less<char>&, char*>(char*, char*, __less<char>&);
14  #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
15  template void __sort<__less<wchar_t>&, wchar_t*>(wchar_t*, wchar_t*, __less<wchar_t>&);
16  #endif
17  template void __sort<__less<signed char>&, signed char*>(signed char*, signed char*, __less<signed char>&);
18  template void __sort<__less<unsigned char>&, unsigned char*>(unsigned char*, unsigned char*, __less<unsigned char>&);
19  template void __sort<__less<short>&, short*>(short*, short*, __less<short>&);
20  template void __sort<__less<unsigned short>&, unsigned short*>(unsigned short*, unsigned short*, __less<unsigned short>&);
21  template void __sort<__less<int>&, int*>(int*, int*, __less<int>&);
22  template void __sort<__less<unsigned>&, unsigned*>(unsigned*, unsigned*, __less<unsigned>&);
23  template void __sort<__less<long>&, long*>(long*, long*, __less<long>&);
24  template void __sort<__less<unsigned long>&, unsigned long*>(unsigned long*, unsigned long*, __less<unsigned long>&);
25  template void __sort<__less<long long>&, long long*>(long long*, long long*, __less<long long>&);
26  template void __sort<__less<unsigned long long>&, unsigned long long*>(unsigned long long*, unsigned long long*, __less<unsigned long long>&);
27  template void __sort<__less<float>&, float*>(float*, float*, __less<float>&);
28  template void __sort<__less<double>&, double*>(double*, double*, __less<double>&);
29  template void __sort<__less<long double>&, long double*>(long double*, long double*, __less<long double>&);
30  
31  template bool __insertion_sort_incomplete<__less<char>&, char*>(char*, char*, __less<char>&);
32  #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
33  template bool __insertion_sort_incomplete<__less<wchar_t>&, wchar_t*>(wchar_t*, wchar_t*, __less<wchar_t>&);
34  #endif
35  template bool __insertion_sort_incomplete<__less<signed char>&, signed char*>(signed char*, signed char*, __less<signed char>&);
36  template bool __insertion_sort_incomplete<__less<unsigned char>&, unsigned char*>(unsigned char*, unsigned char*, __less<unsigned char>&);
37  template bool __insertion_sort_incomplete<__less<short>&, short*>(short*, short*, __less<short>&);
38  template bool __insertion_sort_incomplete<__less<unsigned short>&, unsigned short*>(unsigned short*, unsigned short*, __less<unsigned short>&);
39  template bool __insertion_sort_incomplete<__less<int>&, int*>(int*, int*, __less<int>&);
40  template bool __insertion_sort_incomplete<__less<unsigned>&, unsigned*>(unsigned*, unsigned*, __less<unsigned>&);
41  template bool __insertion_sort_incomplete<__less<long>&, long*>(long*, long*, __less<long>&);
42  template bool __insertion_sort_incomplete<__less<unsigned long>&, unsigned long*>(unsigned long*, unsigned long*, __less<unsigned long>&);
43  template bool __insertion_sort_incomplete<__less<long long>&, long long*>(long long*, long long*, __less<long long>&);
44  template bool __insertion_sort_incomplete<__less<unsigned long long>&, unsigned long long*>(unsigned long long*, unsigned long long*, __less<unsigned long long>&);
45  template bool __insertion_sort_incomplete<__less<float>&, float*>(float*, float*, __less<float>&);
46  template bool __insertion_sort_incomplete<__less<double>&, double*>(double*, double*, __less<double>&);
47  template bool __insertion_sort_incomplete<__less<long double>&, long double*>(long double*, long double*, __less<long double>&);
48  
49  template unsigned __sort5<__less<long double>&, long double*>(long double*, long double*, long double*, long double*, long double*, __less<long double>&);
50  
51  _LIBCPP_END_NAMESPACE_STD
52