C++

Asked • 08/20/19

When should I write the keyword 'inline' for a function/method?

When should I write the keyword `inline` for a function/method in C++? After seeing some answers, some related questions: - When should I **not** write the keyword 'inline' for a function/method in C++? - When will the compiler not know when to make a function/method 'inline'? - Does it matter if an application is **multithreaded** when one writes 'inline' for a function/method?

1 Expert Answer

By:

Ahmer H. answered • 02/11/20

Tutor
New to Wyzant

C++/Calculus/Physics 4.0 GPA holder here to help you out.

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.