How do you loop through the contents of a buffer in DX11? Okay, so I'm currently using the IAGetVertexBuffers() method and I'd like to loop through some of the returned buffers to verify the contents.
However, I'm kind of new to DirectX and C++ in general. I tried using a a simple C++ 11 loop:
for (const auto&amp; verts : veBuffer) {
        std::cout &lt;&lt; verts &lt;&lt; std::endl;

But I get an error saying this statement requires a suitable begin statement. Any suggestions would be appreciated at this point.
There are a couple of issues.  First you need to make sure that veBuffer has the correct type, so that probably means you need to cast it to pointer to vertex:
const auto vertices = reinterpret_cast&lt;const Vertex*&gt;(reBuffer);

Second a range-based for-loop needs to know where the range ends and giving it a raw pointer does not provide that information, so you cannot use it here.  Instead you will need to know how many vertices there are and use a normal for-loop:
const size_t numVerts = 32;
for (size_t i = 0; i &lt; numVerts; ++i) {
    const Vertex&amp; vert = vertices[i];
    ...
}