// // forwards.h // string-utils // // Created by Sam Jaffe on 6/12/22. // Copyright © 2022 Sam Jaffe. All rights reserved. // #pragma once #include "string_utils/traits.h" namespace string_utils { // A helper object for providing partial specializations for casting template struct cast_helper; // The main parser template std::pair cast(std::string_view str) noexcept; template std::pair cast(std::vector const &str) noexcept; template (S, T&)>{}>> bool cast(S const &str, T & to) noexcept { return cast_helper{}(str, to); } }