mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
StateWrapper: Add std::array overload
This commit is contained in:
parent
a48b856a62
commit
9ee8c0194e
|
@ -103,6 +103,12 @@ public:
|
||||||
void Do(std::string* value_ptr);
|
void Do(std::string* value_ptr);
|
||||||
void Do(String* value_ptr);
|
void Do(String* value_ptr);
|
||||||
|
|
||||||
|
template<typename T, size_t N>
|
||||||
|
void Do(std::array<T, N>* data)
|
||||||
|
{
|
||||||
|
DoArray(data->data(), data->size());
|
||||||
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void Do(std::vector<T>* data)
|
void Do(std::vector<T>* data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue