Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

overload of << c++

std::ostream& operator<<(std::ostream& stream, 
                     const Math::Matrix& matrix) {
    matrix.print(stream); //assuming you define print for matrix 
    return stream;
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #overload
ADD COMMENT
Topic
Name
2+5 =