summaryrefslogtreecommitdiffstats
path: root/libcxx/include/random
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-08-12 21:56:02 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-08-12 21:56:02 +0000
commit54976f2619ab9ccd321acf46dde4c15baeb84694 (patch)
tree43d2d54cc7b628da57bae18fb1031d29fb32896f /libcxx/include/random
parentc53dd2ac01eb3044da996ad5b8d30ef85a18cda5 (diff)
downloadbcm5719-llvm-54976f2619ab9ccd321acf46dde4c15baeb84694.tar.gz
bcm5719-llvm-54976f2619ab9ccd321acf46dde4c15baeb84694.zip
Fixed PR10574: http://llvm.org/bugs/show_bug.cgi?id=10574
llvm-svn: 137522
Diffstat (limited to 'libcxx/include/random')
-rw-r--r--libcxx/include/random22
1 files changed, 22 insertions, 0 deletions
diff --git a/libcxx/include/random b/libcxx/include/random
index ace47a16b35..ac7b04dbc07 100644
--- a/libcxx/include/random
+++ b/libcxx/include/random
@@ -3399,9 +3399,11 @@ public:
// constructors
_LIBCPP_INLINE_VISIBILITY
seed_seq() {}
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _Tp>
_LIBCPP_INLINE_VISIBILITY
seed_seq(initializer_list<_Tp> __il) {init(__il.begin(), __il.end());}
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _InputIterator>
_LIBCPP_INLINE_VISIBILITY
@@ -5715,9 +5717,11 @@ public:
_LIBCPP_INLINE_VISIBILITY
param_type(_InputIterator __f, _InputIterator __l)
: __p_(__f, __l) {__init();}
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
_LIBCPP_INLINE_VISIBILITY
param_type(initializer_list<double> __wl)
: __p_(__wl.begin(), __wl.end()) {__init();}
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
param_type(size_t __nw, double __xmin, double __xmax,
_UnaryOperation __fw);
@@ -5760,9 +5764,11 @@ public:
_LIBCPP_INLINE_VISIBILITY
discrete_distribution(_InputIterator __f, _InputIterator __l)
: __p_(__f, __l) {}
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
_LIBCPP_INLINE_VISIBILITY
discrete_distribution(initializer_list<double> __wl)
: __p_(__wl) {}
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
_LIBCPP_INLINE_VISIBILITY
discrete_distribution(size_t __nw, double __xmin, double __xmax,
@@ -5942,8 +5948,10 @@ public:
template<class _InputIteratorB, class _InputIteratorW>
param_type(_InputIteratorB __fB, _InputIteratorB __lB,
_InputIteratorW __fW);
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
param_type(initializer_list<result_type> __bl, _UnaryOperation __fw);
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
param_type(size_t __nw, result_type __xmin, result_type __xmax,
_UnaryOperation __fw);
@@ -5993,11 +6001,13 @@ public:
_InputIteratorW __fW)
: __p_(__fB, __lB, __fW) {}
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
_LIBCPP_INLINE_VISIBILITY
piecewise_constant_distribution(initializer_list<result_type> __bl,
_UnaryOperation __fw)
: __p_(__bl, __fw) {}
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
_LIBCPP_INLINE_VISIBILITY
@@ -6127,6 +6137,8 @@ piecewise_constant_distribution<_RealType>::param_type::param_type(
}
}
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
+
template<class _RealType>
template<class _UnaryOperation>
piecewise_constant_distribution<_RealType>::param_type::param_type(
@@ -6150,6 +6162,8 @@ piecewise_constant_distribution<_RealType>::param_type::param_type(
}
}
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
+
template<class _RealType>
template<class _UnaryOperation>
piecewise_constant_distribution<_RealType>::param_type::param_type(
@@ -6258,8 +6272,10 @@ public:
template<class _InputIteratorB, class _InputIteratorW>
param_type(_InputIteratorB __fB, _InputIteratorB __lB,
_InputIteratorW __fW);
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
param_type(initializer_list<result_type> __bl, _UnaryOperation __fw);
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
param_type(size_t __nw, result_type __xmin, result_type __xmax,
_UnaryOperation __fw);
@@ -6309,11 +6325,13 @@ public:
_InputIteratorW __fW)
: __p_(__fB, __lB, __fW) {}
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
_LIBCPP_INLINE_VISIBILITY
piecewise_linear_distribution(initializer_list<result_type> __bl,
_UnaryOperation __fw)
: __p_(__bl, __fw) {}
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
template<class _UnaryOperation>
_LIBCPP_INLINE_VISIBILITY
@@ -6447,6 +6465,8 @@ piecewise_linear_distribution<_RealType>::param_type::param_type(
}
}
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
+
template<class _RealType>
template<class _UnaryOperation>
piecewise_linear_distribution<_RealType>::param_type::param_type(
@@ -6470,6 +6490,8 @@ piecewise_linear_distribution<_RealType>::param_type::param_type(
}
}
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
+
template<class _RealType>
template<class _UnaryOperation>
piecewise_linear_distribution<_RealType>::param_type::param_type(
OpenPOWER on IntegriCloud