aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/wait_object.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-19 16:10:12 -0400
committerLioncash <mathew1800@gmail.com>2018-07-19 17:05:12 -0400
commit2b158ebd259e1857631d544ae06bc3cfe58a9b59 (patch)
tree7813699b6de1c54556817cba997c870cb4846b35 /src/core/hle/kernel/wait_object.cpp
parent9017666b6f2911e5fc3d55766ccbccd544d80545 (diff)
hle_ipc: Introduce generic WriteBuffer overload for multiple container types
This introduces a slightly more generic variant of WriteBuffer(). Notably, this variant doesn't constrain the arguments to only accepting std::vector instances. It accepts whatever adheres to the ContiguousContainer concept in the C++ standard library. This essentially means, std::array, std::string, and std::vector can be used directly with this interface. The interface no longer forces you to solely use containers that dynamically allocate. To ensure our overloads play nice with one another, we only enable the container-based WriteBuffer if the argument is not a pointer, otherwise we fall back to the pointer-based one.
Diffstat (limited to 'src/core/hle/kernel/wait_object.cpp')
0 files changed, 0 insertions, 0 deletions