acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_std.h
1
// From PPP by camilo on 2023-02-03 03:26 <3ThomasBorregaardSorensen!!
2
#pragma once
3
4
5
template
<
size_t
N>
6
inline ::string as_string(
const
std::bitset<N>& v)
7
{
8
9
return
v.to_string().c_str();
10
11
}
12
13
14
template
<
size_t
N>
15
inline
void
from_string(std::bitset<N>& dst, const ::scoped_string& scopedstr)
16
{
17
18
dst = std::bitset<N>(::std::string(scopedstr.begin(), scopedstr.end()));
19
20
}
21
22
23
prototype
collection
_std.h
Generated by
1.17.0