2 * Copyright 2008-2013 NVIDIA Corporation
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include <thrust/detail/config.h>
18 #include <thrust/detail/allocator/tagged_allocator.h>
27 template<typename T, typename Tag, typename Pointer>
28 tagged_allocator<T,Tag,Pointer>
33 template<typename T, typename Tag, typename Pointer>
34 tagged_allocator<T,Tag,Pointer>
35 ::tagged_allocator(const tagged_allocator<T,Tag,Pointer> &)
39 template<typename T, typename Tag, typename Pointer>
40 template<typename U, typename OtherPointer>
41 tagged_allocator<T,Tag,Pointer>
42 ::tagged_allocator(const tagged_allocator<U,Tag,OtherPointer> &)
46 template<typename T, typename Tag, typename Pointer>
47 tagged_allocator<T,Tag,Pointer>
52 template<typename T, typename Tag, typename Pointer>
53 typename tagged_allocator<T,Tag,Pointer>::pointer
54 tagged_allocator<T,Tag,Pointer>
55 ::address(reference x) const
61 template<typename T, typename Tag, typename Pointer>
62 typename tagged_allocator<T,Tag,Pointer>::const_pointer
63 tagged_allocator<T,Tag,Pointer>
64 ::address(const_reference x) const
70 template<typename T, typename Tag, typename Pointer>
71 typename tagged_allocator<T,Tag,Pointer>::size_type
72 tagged_allocator<T,Tag,Pointer>
75 return (std::numeric_limits<size_type>::max)() / sizeof(T);
79 template<typename T1, typename Pointer1, typename T2, typename Pointer2, typename Tag>
81 bool operator==(const tagged_allocator<T1,Pointer1,Tag> &, const tagged_allocator<T2,Pointer2,Tag> &)
87 template<typename T1, typename Pointer1, typename T2, typename Pointer2, typename Tag>
89 bool operator!=(const tagged_allocator<T1,Pointer1,Tag> &, const tagged_allocator<T2,Pointer2,Tag> &)