]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/string_view.h
Bill is consistent. Bill is correct. Be like Bill.
[apt.git] / apt-pkg / contrib / string_view.h
index d4ff800286ad7e9f69b18c75db6a4a4aee214b3b..e0aff3dca78e344617632a14d364ed28059c86c4 100644 (file)
@@ -13,6 +13,7 @@
 #define APT_STRINGVIEW_H
 #include <string.h>
 #include <string>
+#include <apt-pkg/macros.h>
 
 namespace APT {
 
@@ -23,7 +24,7 @@ namespace APT {
  * used by APT. It is not meant to be used in programs, only inside the
  * library for performance critical paths.
  */
-class StringView {
+class APT_HIDDEN StringView {
     const char *data_;
     size_t size_;
 
@@ -111,7 +112,6 @@ public:
     constexpr size_t length() const { return size_; }
 };
 
-
 }
 
 inline bool operator ==(const char *other, APT::StringView that);