| 500 | |
| 501 | template <typename Iterator, typename Sentinel> |
| 502 | inline static bool call(Iterator& first, Sentinel last, T& attr) |
| 503 | { |
| 504 | if (first == last) |
| 505 | return false; |
| 506 | |
| 507 | typedef extract_int_impl< |
| 508 | T |
| 509 | , Radix |
| 510 | , MinDigits |
| 511 | , MaxDigits |
| 512 | , positive_accumulator<Radix> |
| 513 | , Accumulate> |
| 514 | extract_type; |
| 515 | |
| 516 | Iterator save = first; |
| 517 | if (!extract_type::parse(first, last, attr)) |
| 518 | { |
| 519 | first = save; |
| 520 | return false; |
| 521 | } |
| 522 | return true; |
| 523 | } |
| 524 | }; |
| 525 | |
| 526 | /////////////////////////////////////////////////////////////////////////// |