diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/String_Base_Const.h | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/ace/String_Base_Const.h')
-rw-r--r-- | ACE/ace/String_Base_Const.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ACE/ace/String_Base_Const.h b/ACE/ace/String_Base_Const.h new file mode 100644 index 00000000000..7968512005e --- /dev/null +++ b/ACE/ace/String_Base_Const.h @@ -0,0 +1,49 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file String_Base_Const.h + * + * $Id$ + * + * @author Nanbor Wang <nanbor@cs.wustl.edu> + */ +//============================================================================= + +#ifndef ACE_STRING_BASE_CONST_H +#define ACE_STRING_BASE_CONST_H + +#include /**/ "ace/pre.h" + +#include "ace/ACE_export.h" +#include "ace/Malloc_Base.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +/** + * @class ACE_String_Base_Const + * + * @brief This class defines a constant for ACE_String_Base to + * circumvent a bug in SunCC 6.0. + */ +class ACE_Export ACE_String_Base_Const +{ +public: + + typedef ACE_Allocator::size_type size_type; + + /// Constant that denotes case where no such character position + /// exists. + static size_type const npos; + +}; + +ACE_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" +#endif /* ACE_STRING_BASE_CONST_H */ |