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.180 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.179 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.178 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.177 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.176 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.175 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.174 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.173 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.172 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.171 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.170 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.169 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.167 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.166 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.165 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.164 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.163 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.162 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.161 tracks/cpp/exercises/leap/example.h
trackler-2.2.1.160 tracks/cpp/exercises/leap/example.h