mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-12-15 18:17:49 +08:00
add inline specifiers
This commit is contained in:
parent
489d9f7b1f
commit
a8f59cf075
@ -129,7 +129,7 @@ namespace npp
|
||||
/// \param rOutputStream The stream the exception information is written to.
|
||||
/// \param rException The exception that's being written.
|
||||
/// \return Reference to the output stream being used.
|
||||
std::ostream &
|
||||
inline std::ostream &
|
||||
operator << (std::ostream &rOutputStream, const Exception &rException)
|
||||
{
|
||||
rOutputStream << rException.toString();
|
||||
|
||||
@ -137,13 +137,13 @@ namespace npp
|
||||
Size oSize_;
|
||||
};
|
||||
|
||||
bool
|
||||
inline bool
|
||||
operator== (const Image::Size &rFirst, const Image::Size &rSecond)
|
||||
{
|
||||
return rFirst.nWidth == rSecond.nWidth && rFirst.nHeight == rSecond.nHeight;
|
||||
}
|
||||
|
||||
bool
|
||||
inline bool
|
||||
operator!= (const Image::Size &rFirst, const Image::Size &rSecond)
|
||||
{
|
||||
return rFirst.nWidth != rSecond.nWidth || rFirst.nHeight != rSecond.nHeight;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user