[libc++] Reduce dependencies on <iostream> from <random>
authorLouis Dionne <ldionne@apple.com>
Thu, 15 Oct 2020 17:27:27 +0000 (13:27 -0400)
committerLouis Dionne <ldionne@apple.com>
Thu, 15 Oct 2020 17:40:18 +0000 (13:40 -0400)
commit6abc15ae3c245b6043f15d3cdedfad187888dfd5
treed89248dc2bdd7545538db530ee0c048073594644
parent2aad6a0884e3372fef8176902cf984d2f385d938
[libc++] Reduce dependencies on <iostream> from <random>

We included <istream> and <ostream> from <random>, but really it is
sufficient to include <iosfwd> if we make sure we access ios_base
members through a dependent type. This allows us to break a hard
dependency of <random> on locales.
libcxx/include/ios
libcxx/include/iosfwd
libcxx/include/random