Download OpenTimer_OpenTimer/ot/taskflow/utility/stream.hpp from SAIFIINDUSTRIES/verilog_data-2: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-2/resolve/main/OpenTimer_OpenTimer/ot/taskflow/utility/stream.hpp
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-2/OpenTimer_OpenTimer/ot/taskflow/utility/stream.hpp
-
curl -L -o stream.hpp https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-2/resolve/main/OpenTimer_OpenTimer/ot/taskflow/utility/stream.hpp
700 Bytes
| namespace tf { | |
| // Procedure: ostreamize | |
| template <typename T> | |
| void ostreamize(std::ostream& os, T&& token) { | |
| os << std::forward<T>(token); | |
| } | |
| // Procedure: ostreamize | |
| template <typename T, typename... Rest> | |
| void ostreamize(std::ostream& os, T&& token, Rest&&... rest) { | |
| os << std::forward<T>(token); | |
| ostreamize(os, std::forward<Rest>(rest)...); | |
| } | |
| // Function: stringify | |
| template <typename... ArgsT> | |
| std::string stringify(ArgsT&&... args) { | |
| std::ostringstream oss; | |
| ostreamize(oss, std::forward<ArgsT>(args)...); | |
| return oss.str(); | |
| } | |
| } // end of namespace tf ----------------------------------------------------- | |