diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2010-09-21 20:16:37 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2010-09-21 20:16:37 +0000 |
| commit | f5ab703f686679be4473705d89d93637351ead77 (patch) | |
| tree | 4a7bb18bd0fd076d970f6fd9faed1aadb74787a0 /libcxx/include/array | |
| parent | beb64f55cf58b908fc58c15129d94ebc5762a39f (diff) | |
| download | bcm5719-llvm-f5ab703f686679be4473705d89d93637351ead77.tar.gz bcm5719-llvm-f5ab703f686679be4473705d89d93637351ead77.zip | |
visibility-decoration.
llvm-svn: 114470
Diffstat (limited to 'libcxx/include/array')
| -rw-r--r-- | libcxx/include/array | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/libcxx/include/array b/libcxx/include/array index ce316813854..0ee59ef7917 100644 --- a/libcxx/include/array +++ b/libcxx/include/array @@ -115,7 +115,7 @@ template <int I, class T, size_t N> const T& get(const array<T, N>&); _LIBCPP_BEGIN_NAMESPACE_STD template <class _Tp, size_t _Size> -struct array +struct _LIBCPP_VISIBLE array { // types: typedef array __self; @@ -134,8 +134,10 @@ struct array value_type __elems_[_Size > 0 ? _Size : 1]; // No explicit construct/copy/destroy for aggregate type - _LIBCPP_INLINE_VISIBILITY void fill(const value_type& __u) {_STD::fill_n(__elems_, _Size, __u);} - _LIBCPP_INLINE_VISIBILITY void swap(array& __a) {_STD::swap_ranges(__elems_, __elems_ + _Size, __a.__elems_);} + _LIBCPP_INLINE_VISIBILITY void fill(const value_type& __u) + {_STD::fill_n(__elems_, _Size, __u);} + _LIBCPP_INLINE_VISIBILITY void swap(array& __a) + {_STD::swap_ranges(__elems_, __elems_ + _Size, __a.__elems_);} // iterators: _LIBCPP_INLINE_VISIBILITY iterator begin() {return iterator(__elems_);} @@ -256,20 +258,22 @@ swap(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y) } template <class _Tp, size_t _Size> - class tuple_size<array<_Tp, _Size> > : public integral_constant<size_t, _Size> {}; +class _LIBCPP_VISIBLE tuple_size<array<_Tp, _Size> > + : public integral_constant<size_t, _Size> {}; template <class _Tp, size_t _Size> - class tuple_size<const array<_Tp, _Size> > : public integral_constant<size_t, _Size> {}; +class _LIBCPP_VISIBLE tuple_size<const array<_Tp, _Size> > + : public integral_constant<size_t, _Size> {}; template <size_t _Ip, class _Tp, size_t _Size> -class tuple_element<_Ip, array<_Tp, _Size> > +class _LIBCPP_VISIBLE tuple_element<_Ip, array<_Tp, _Size> > { public: typedef _Tp type; }; template <size_t _Ip, class _Tp, size_t _Size> -class tuple_element<_Ip, const array<_Tp, _Size> > +class _LIBCPP_VISIBLE tuple_element<_Ip, const array<_Tp, _Size> > { public: typedef const _Tp type; |

