Add comments and style fixes to <variant>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 9 Apr 2019 18:50:48 +0000 (19:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 9 Apr 2019 18:50:48 +0000 (19:50 +0100)
commit9d89b73c06c84ef461da270830f18a7703503e09
treeac10bbd8a21bb6af75c1858e4798f42dcb95f8a2
parent8701cb5e0dc0a3b949bb28f3ff9ee5bae98c47fe
Add comments and style fixes to <variant>

* include/std/variant: Adjust whitespace. Add comments.
(_Multi_array): Leave primary template undefined.
(_Multi_array<_Tp>): Define partial specialization for base case of
recursion.
(__gen_vtable_impl, __gen_vtable): Remove redundant && from type
which is always a reference.
(__gen_vtable::_S_apply()): Remove function, inline body into
default member initializer.
* testsuite/20_util/variant/visit.cc: Test with noncopyable types.

From-SVN: r270238
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/20_util/variant/visit.cc