diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-14 20:43:07 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-14 20:43:07 +0000 |
commit | 8787f26bff2b17aaecb71d30f3204a17b4beef5e (patch) | |
tree | 76f4e4c9cd8ed6b352d9995c285742b80ab928ee /libstdc++-v3/include/experimental | |
parent | 0698cdf1523a52c55f0b9505cf94de51f1f8f4c0 (diff) | |
download | gcc-8787f26bff2b17aaecb71d30f3204a17b4beef5e.tar.gz |
* include/experimental/any (any_cast): Combine duplicate doxygen
comments.
* include/experimental/string_view (basic_string_view): Update
doxygen comment.
* include/std/bitset (bitset): Move to Doxygen 'utilities' group.
* include/tr2/dynamic_bitset (_Bool2UChar): Remove unused templates.
(dynamic_bitset): Improve Doxygen comments.
* include/tr2/dynamic_bitset.tcc (operator>>): Improve Doxygen
comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211672 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/experimental')
-rw-r--r-- | libstdc++-v3/include/experimental/any | 35 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/string_view | 3 |
2 files changed, 13 insertions, 25 deletions
diff --git a/libstdc++-v3/include/experimental/any b/libstdc++-v3/include/experimental/any index 2839af1eae6..1e8d9b2f7d1 100644 --- a/libstdc++-v3/include/experimental/any +++ b/libstdc++-v3/include/experimental/any @@ -81,11 +81,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } /** - * @brief A type-safe container of any type. - * - * An @c any object's state is either empty or it stores a contained object - * of CopyConstructible type. - */ + * @brief A type-safe container of any type. + * + * An @c any object's state is either empty or it stores a contained object + * of CopyConstructible type. + */ class any { // Holds either pointer to a heap object or the contained object itself. @@ -391,6 +391,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @throw bad_any_cast If <code> * __any.type() != typeid(remove_reference_t<_ValueType>) * </code> + * + * @{ */ template<typename _ValueType> inline _ValueType any_cast(any& __any) @@ -403,16 +405,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __throw_bad_any_cast(); } - /** - * @brief Access the contained object. - * - * @tparam _ValueType A reference or CopyConstructible type. - * @param __any The object to access. - * @return The contained object. - * @throw bad_any_cast If <code> - * __any.type() != typeid(remove_reference_t<_ValueType>) - * </code> - */ template<typename _ValueType> inline _ValueType any_cast(any&& __any) { @@ -423,6 +415,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return *__p; __throw_bad_any_cast(); } + // @} /** * @brief Access the contained object. @@ -432,6 +425,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @return The address of the contained object if <code> * __any != nullptr && __any.type() == typeid(_ValueType) * </code>, otherwise a null pointer. + * + * @{ */ template<typename _ValueType> inline const _ValueType* any_cast(const any* __any) noexcept @@ -441,15 +436,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return nullptr; } - /** - * @brief Access the contained object. - * - * @tparam _ValueType The type of the contained object. - * @param __any A pointer to the object to access. - * @return The address of the contained object if <code> - * __any != nullptr && __any.type() == typeid(_ValueType) - * </code>, otherwise a null pointer. - */ template<typename _ValueType> inline _ValueType* any_cast(any* __any) noexcept { @@ -457,6 +443,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return static_cast<_ValueType*>(__any_caster<_ValueType>(__any)); return nullptr; } + // @} #ifdef __GXX_RTTI template<typename _Tp, typename _Alloc> diff --git a/libstdc++-v3/include/experimental/string_view b/libstdc++-v3/include/experimental/string_view index 49f46af544f..b54c9e85db8 100644 --- a/libstdc++-v3/include/experimental/string_view +++ b/libstdc++-v3/include/experimental/string_view @@ -49,11 +49,12 @@ namespace experimental _GLIBCXX_BEGIN_NAMESPACE_VERSION /** - * @class basic_string_view <string_view> + * @class basic_string_view <experimental/string_view> * @brief A non-owning reference to a string. * * @ingroup strings * @ingroup sequences + * @ingroup experimental * * @tparam _CharT Type of character * @tparam _Traits Traits for character type, defaults to |