|
| 1 | +#include "../taint-tests/stl.h" |
1 | 2 | using uint16_t = unsigned short; |
2 | 3 | using int64_t = long long; |
3 | 4 | using size_t = unsigned long; |
4 | 5 | using uint8_t = unsigned char; |
5 | 6 | using int32_t = int; |
6 | 7 | using uint32_t = unsigned int; |
7 | 8 |
|
8 | | -namespace std |
9 | | -{ |
10 | | - template <class T1, class T2> |
11 | | - struct pair { |
12 | | - typedef T1 first_type; |
13 | | - typedef T2 second_type; |
14 | | - |
15 | | - T1 first; |
16 | | - T2 second; |
17 | | - pair(); |
18 | | - pair(const T1& x, const T2& y); |
19 | | - template<class U, class V> pair(const pair<U, V> &p); |
20 | | - |
21 | | - void swap(pair& p) /*noexcept(...)*/; |
22 | | - }; |
23 | | - |
24 | | - template<class charT> struct char_traits; |
25 | | - |
26 | | - typedef size_t streamsize; |
27 | | - |
28 | | - template <class T> class allocator { |
29 | | - public: |
30 | | - allocator() throw(); |
31 | | - typedef size_t size_type; |
32 | | - }; |
33 | | - |
34 | | - template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> > |
35 | | - class basic_string { |
36 | | - public: |
37 | | - using value_type = charT; |
38 | | - using reference = value_type&; |
39 | | - using const_reference = const value_type&; |
40 | | - typedef typename Allocator::size_type size_type; |
41 | | - |
42 | | - basic_string(const charT* s, const Allocator& a = Allocator()); |
43 | | - }; |
44 | | - |
45 | | - typedef basic_string<char> string; |
46 | | - |
47 | | - template <typename K, typename V> |
48 | | - class map |
49 | | - { |
50 | | - public: |
51 | | - using key_type = K; |
52 | | - using value_type = pair<const K, V>; |
53 | | - map(); |
54 | | - ~map(); |
55 | | - |
56 | | - V& operator[](const key_type& key); |
57 | | - }; |
58 | | - |
59 | | - template <typename T> |
60 | | - class vector |
61 | | - { |
62 | | - public: |
63 | | - vector(); |
64 | | - ~vector(); |
65 | | - |
66 | | - T& operator[](size_t); |
67 | | - }; |
68 | | - |
69 | | - template<typename T> |
70 | | - class unique_ptr { |
71 | | - public: |
72 | | - unique_ptr(); |
73 | | - ~unique_ptr(); |
74 | | - |
75 | | - T* get(); |
76 | | - }; |
77 | | -} |
78 | | - |
79 | 9 | namespace Azure |
80 | 10 | { |
81 | 11 | template <typename T> |
|
0 commit comments