This avoids templates using StringView to be exported, such as
std::vector<StringView*>::emplace_back().
Gbp-Dch: ignore
#define APT_STRINGVIEW_H
#include <string.h>
#include <string>
#define APT_STRINGVIEW_H
#include <string.h>
#include <string>
+#include <apt-pkg/macros.h>
* used by APT. It is not meant to be used in programs, only inside the
* library for performance critical paths.
*/
* used by APT. It is not meant to be used in programs, only inside the
* library for performance critical paths.
*/
+class APT_HIDDEN StringView {
const char *data_;
size_t size_;
const char *data_;
size_t size_;