Access specific layer of from c++

How could I access specific output layer from c++ api?

I can load the model by c++ api as this example show, but can’t find a way to get the output of specific layer.
Do anyone know how could I access the output of specific layer?Thanks