can anyone explain me how to use the inline function in c++ code with example?
ravanan 0 Newbie Poster
Recommended Answers
Jump to Postuse the inline keyword. Note that the compiler can choose not to respect your request.
Jump to Postcan anyone explain me how to use the inline function in c++ code with example?
There are two ways, actually. The inline keyword is one:
// foo is explicitly inline inline void foo() { /* ... */ }
Another is for member functions defined inside of a …
All 6 Replies
mrnutty 761 Senior Poster
ravanan 0 Newbie Poster
ravanan 0 Newbie Poster
mainsrktmachine 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
tajendra 9 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.