Get a reference to the next layer.
next_layer_type & next_layer();
This function returns a reference to the next layer in a stack of stream layers.
A reference to the next layer in the stack of stream layers. Ownership is not transferred to the caller.