diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-08-26 01:26:34 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-08-26 07:25:18 +0200 |
commit | 8fc9c698ee643dd4363c5ad1daa7bbc0a13982d5 (patch) | |
tree | 15e85cd537dd96fa02f4aca5e7573645be27a11a /include/com/sun | |
parent | f876dc9e16b9c85ae85ed848865531a8be0e911c (diff) |
Generalize comphelper::concatSequences to accept other container types
... as second and following arguments.
Change-Id: I1c994ec234354805bc702632878fd67a54d271d6
Reviewed-on: https://gerrit.libreoffice.org/78092
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/com/sun')
-rw-r--r-- | include/com/sun/star/uno/Sequence.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/com/sun/star/uno/Sequence.h b/include/com/sun/star/uno/Sequence.h index f5c9c384eeef..78d1124ba504 100644 --- a/include/com/sun/star/uno/Sequence.h +++ b/include/com/sun/star/uno/Sequence.h @@ -272,6 +272,16 @@ inline ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL toUnoSequence( } } +#if defined LIBO_INTERNAL_ONLY +namespace std +{ +template <class E> sal_Int32 size(const ::com::sun::star::uno::Sequence<E>& s) +{ + return s.getLength(); +} +} +#endif + /** Gets the meta type of IDL sequence. There are cases (involving templates) where uses of getCppuType are known to |