Search code examples
c++11methodsampersand

What does '&' mean in C++ when it comes before a method declaration


For example, if a method is defined as the following:

  ILDCRTParams &GetParams() const;

Is this any different then:

 ILDCRTParams& GetParams() const;

I'm using C++ 11.


Solution

  • They are exactly the same. The return type is ILDCRTParams&