2 added 110 characters in body
source | link

C++ (gcc), 2436 bytes

#define f(x)(x+x).find(x,1)<x.size()

Try it online!Try it online!

Another port of xnor's solution. Uses a macro to expand the argument into the expression. The argument is assumed to be of type std::string.

C++ (gcc), 24 bytes

(x+x).find(x,1)<x.size()

Try it online!

Another port of xnor's solution.

C++ (gcc), 36 bytes

#define f(x)(x+x).find(x,1)<x.size()

Try it online!

Another port of xnor's solution. Uses a macro to expand the argument into the expression. The argument is assumed to be of type std::string.

1
source | link

C++ (gcc), 24 bytes

(x+x).find(x,1)<x.size()

Try it online!

Another port of xnor's solution.