From 98e88c01eb0e6404d1c5f49a22165d0861e6b924 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sat, 11 Apr 2026 02:20:31 +0800 Subject: feat: implement basic HTTP client with socket and address networking utilities --- include/ricochet/net/sys/string_view_range.hh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/ricochet/net/sys/string_view_range.hh (limited to 'include/ricochet/net/sys/string_view_range.hh') diff --git a/include/ricochet/net/sys/string_view_range.hh b/include/ricochet/net/sys/string_view_range.hh new file mode 100644 index 0000000..84be394 --- /dev/null +++ b/include/ricochet/net/sys/string_view_range.hh @@ -0,0 +1,18 @@ +/** + * --------------------------------------------------------------------------- + * @notice This file was adapted from the Minnow networking framework, + * originally developed for Stanford University's CS144 course. + * It has been incorporated into the Ricochet project as foundational + * system utility code. + * --------------------------------------------------------------------------- + */ + +#pragma once + +#include +#include + +// This concept represents any range (e.g. vector) whose elements can be converted to string_view. +template +concept StringViewRange + = std::ranges::sized_range && std::is_constructible_v>; -- cgit v1.2.3