summaryrefslogtreecommitdiffstats
path: root/src/common/fs/file.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-10-26 06:41:54 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-10-26 06:41:54 +0200
commit8b4d5aeb4f01348312ca38555d7951ff54b23fc3 (patch)
treef8df340674b1480f3e0f53a9d21b7fa6fbb350f3 /src/common/fs/file.h
parentMerge pull request #9128 from abouvier/patch-1 (diff)
downloadyuzu-8b4d5aeb4f01348312ca38555d7951ff54b23fc3.tar
yuzu-8b4d5aeb4f01348312ca38555d7951ff54b23fc3.tar.gz
yuzu-8b4d5aeb4f01348312ca38555d7951ff54b23fc3.tar.bz2
yuzu-8b4d5aeb4f01348312ca38555d7951ff54b23fc3.tar.lz
yuzu-8b4d5aeb4f01348312ca38555d7951ff54b23fc3.tar.xz
yuzu-8b4d5aeb4f01348312ca38555d7951ff54b23fc3.tar.zst
yuzu-8b4d5aeb4f01348312ca38555d7951ff54b23fc3.zip
Diffstat (limited to '')
-rw-r--r--src/common/fs/file.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h
index 69b53384c..167c4d826 100644
--- a/src/common/fs/file.h
+++ b/src/common/fs/file.h
@@ -209,8 +209,8 @@ public:
/**
* Helper function which deduces the value type of a contiguous STL container used in ReadSpan.
- * If T is not a contiguous STL container as defined by the concept IsSTLContainer, this calls
- * ReadObject and T must be a trivially copyable object.
+ * If T is not a contiguous container as defined by the concept IsContiguousContainer, this
+ * calls ReadObject and T must be a trivially copyable object.
*
* See ReadSpan for more details if T is a contiguous container.
* See ReadObject for more details if T is a trivially copyable object.
@@ -223,7 +223,7 @@ public:
*/
template <typename T>
[[nodiscard]] size_t Read(T& data) const {
- if constexpr (IsSTLContainer<T>) {
+ if constexpr (IsContiguousContainer<T>) {
using ContiguousType = typename T::value_type;
static_assert(std::is_trivially_copyable_v<ContiguousType>,
"Data type must be trivially copyable.");
@@ -235,8 +235,8 @@ public:
/**
* Helper function which deduces the value type of a contiguous STL container used in WriteSpan.
- * If T is not a contiguous STL container as defined by the concept IsSTLContainer, this calls
- * WriteObject and T must be a trivially copyable object.
+ * If T is not a contiguous STL container as defined by the concept IsContiguousContainer, this
+ * calls WriteObject and T must be a trivially copyable object.
*
* See WriteSpan for more details if T is a contiguous container.
* See WriteObject for more details if T is a trivially copyable object.
@@ -249,7 +249,7 @@ public:
*/
template <typename T>
[[nodiscard]] size_t Write(const T& data) const {
- if constexpr (IsSTLContainer<T>) {
+ if constexpr (IsContiguousContainer<T>) {
using ContiguousType = typename T::value_type;
static_assert(std::is_trivially_copyable_v<ContiguousType>,
"Data type must be trivially copyable.");