summaryrefslogtreecommitdiff
path: root/ace/String_Base.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/String_Base.inl')
-rw-r--r--ace/String_Base.inl8
1 files changed, 8 insertions, 0 deletions
diff --git a/ace/String_Base.inl b/ace/String_Base.inl
index 2a27f4b158c..7234f916aab 100644
--- a/ace/String_Base.inl
+++ b/ace/String_Base.inl
@@ -8,6 +8,7 @@
#include "ace/OS_NS_string.h"
#include "ace/OS_Memory.h"
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template <class CHAR> ACE_INLINE void
ACE_String_Base<CHAR>::dump (void) const
@@ -33,6 +34,12 @@ ACE_String_Base<CHAR>::length (void) const
return this->len_;
}
+template <class CHAR> ACE_INLINE bool
+ACE_String_Base<CHAR>::empty (void) const
+{
+ return this->len_ == 0;
+}
+
template <class CHAR> ACE_INLINE ACE_String_Base<CHAR>
ACE_String_Base<CHAR>::substr (size_t offset,
ssize_t length) const
@@ -113,3 +120,4 @@ ACE_String_Base<CHAR>::strstr (const ACE_String_Base<CHAR> &s) const
return this->find (s.rep_);
}
+ACE_END_VERSIONED_NAMESPACE_DECL