Q:

Rewrite the isShorter function from § 6.2.2 (p. 211) to be inline

0

Rewrite the isShorter function from § 6.2.2 (p. 211) to be inline.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <string>

inline bool isShorter(const std::string &s1, const std::string &s2) {
  return s1.size() < s2.size();
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now