Lines Matching defs:std

289   virtual v8::Maybe<std::string> Get(const char* key) const = 0;
299 virtual std::shared_ptr<KVStore> Clone(v8::Isolate* isolate) const;
306 static std::shared_ptr<KVStore> CreateMapKVStore();
331 template <std::size_t N>
334 const std::array<char, N>& arr) {
348 inline std::string ToLower(const std::string& in);
352 inline std::string ToUpper(const std::string& in);
478 inline std::basic_string<T> ToString() const { return {out(), length()}; }
479 inline std::basic_string_view<T> ToStringView() const {
543 inline std::string ToString() const { return std::string(out(), length()); }
564 explicit OnScopeLeaveImpl(Fn&& fn) : fn_(std::move(fn)), active_(true) {}
570 : fn_(std::move(other.fn_)), active_(other.active_) {
581 return OnScopeLeaveImpl<Fn>{std::move(fn)};
616 return *new(this) MallocedBuffer(std::move(other));
631 value_(std::move(value)) {}
649 return std::move(value_);
659 struct is_callable : std::is_function<T> { };
662 struct is_callable<T, typename std::enable_if<
663 std::is_same<decltype(void(&T::operator())), void>::value
664 >::type> : std::true_type { };
669 typedef std::unique_ptr<T, FunctionDeleter> Pointer;
675 std::vector<std::string_view> SplitString(const std::string_view in,
676 const std::string_view delim);
679 std::string_view str,
682 typename std::enable_if<std::numeric_limits<T>::is_specialized, bool>::type>
688 const std::vector<T>& vec,
692 const std::set<T>& set,
696 const std::unordered_map<T, U>& map,
822 // Can be used as a key for std::unordered_map when lookup performance is more
827 constexpr explicit FastStringKey(std::string_view name);
834 constexpr std::string_view as_string_view() const;
837 static constexpr size_t HashImpl(std::string_view str);
839 const std::string_view name_;
843 // Like std::static_pointer_cast but for unique_ptr with the default deleter.
845 std::unique_ptr<T> static_unique_pointer_cast(std::unique_ptr<U>&& ptr) {
846 return std::unique_ptr<T>(static_cast<T*>(ptr.release()));
853 int ReadFileSync(std::string* result, const char* path);