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.78 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.77 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.76 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.75 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.74 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.73 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.72 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.71 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.70 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.69 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.68 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.67 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.66 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.65 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.64 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.63 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.62 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.61 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.60 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.59 tracks/cpp/exercises/leap/example.h