Sha256: 1d289ee9c2870a9a8c1959349e5ae06a125cd784a44d63fe8c073dbde93f8828

Contents?: true

Size: 168 Bytes

Versions: 396

Compression:

Stored size: 168 Bytes

Contents

#if !defined(LEAP_H)
#define LEAP_H

namespace leap
{

inline bool is_leap_year(int year)
{
    return (year % 100) ? (year % 4 == 0) : (year % 400 == 0);
}

}

#endif

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.97 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.96 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.95 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.94 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.93 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.92 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.91 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.90 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.89 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.88 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.87 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.86 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.85 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.84 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.83 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.82 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.81 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.80 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.79 tracks/cpp/exercises/leap/example.h